Current project got lots of data in NSArrays and NSDictionaries. Nothing against them, extremely useful data structures. Just got to finetune my hammer a bit (since hammer is what I got and thus everything looks like a nail).
So how do you find a certain NSDictionary from NSArray containing a requested key? Two easy ways here:
Friday, January 13, 2012
Find NSDictionary in NSArray with Certain Value
Labels:
NSArray,
NSDictionary,
NSIntegerMax,
NSNotFound,
search
Saturday, January 7, 2012
Always Test in Real - Not Just Crappy - User Device
Memory related defects can be hard to debug, therefore I usually force automatic system "out of memory" notifications. That makes sure I have no other choice, but to handle potential OOM issues from the start. Otherwise the app won't run. Clever, right?
And that's the problem. Potential OOM issues. Did you notice that "potential" keyword?
And that's the problem. Potential OOM issues. Did you notice that "potential" keyword?
Friday, January 6, 2012
Dependency Graph Tool for iOS Projects
One of the tools, which I used to use with Symbian C++ projects, was an automated dependency graph generator. Can't recall the name, had totally forgotten anything like it ever existed. Totally happy in my ignorance. Blissful happy-go-lucky cowboy coding.
Until I found this tool: objc_dep.py at GitHub by nst, which does "Graph the import dependancies in an Objective-C project".
Oh the memories! Oh the horrow, when I checked my current projects...
Until I found this tool: objc_dep.py at GitHub by nst, which does "Graph the import dependancies in an Objective-C project".
Oh the memories! Oh the horrow, when I checked my current projects...
Subscribe to:
Posts (Atom)