What is an NSCFDictionary?

NSDictionary and the other collection classes are actually class clusters: several concrete subclasses classes masquerading under the interface of a single class: they all provide the same functionality (because they are subclasses of the same class — in NSDictionary’s case, this involves the three “primitive methods” -count, -objectForKey:, and -keyEnumerator), but have different internal workings … Read more

iOS start Background Thread

If you use performSelectorInBackground:withObject: to spawn a new thread, then the performed selector is responsible for setting up the new thread’s autorelease pool, run loop and other configuration details – see “Using NSObject to Spawn a Thread” in Apple’s Threading Programming Guide. You’d probably be better off using Grand Central Dispatch, though: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ … Read more