Top "Nsarray" questions

An immutable, integer-indexed array of objects from the Apple Foundation framework.

Is it possible to filter an NSArray by class?

Is there a way construct a predicate to filter by class type? I currently loop through the array and check …

objective-c cocoa cocoa-touch nsarray nspredicate
[__NSArrayM insertObject:atIndex:]: object cannot be nil - how determine where is the error?

I have big project with async event, and sometimes i have error [__NSArrayM insertObject:atIndex:]: object cannot be nil, but …

objective-c ios nsarray null nserror
IndexOfObject return 2147483647

I have an array with 10 items. When I call "IndexOfObject" for the elements number 9 and the element number 10 Xcode return …

iphone nsarray nsrangeexception
How to convert CFArray to Swift Array?

According to Apple's "Using Swift with Cocoa and Objective-C", "In Swift, you can use each pair of toll-free bridged Foundation …

nsarray swift core-foundation
Using NSPredicate to filter based on multiple keys (NOT values for key)

I have the following NSArray containing NSDictionary(s): NSArray *data = [[NSArray alloc] initWithObjects: [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:1], @"bill", [NSNumber numberWithInt:2], @"…

objective-c cocoa nsarray nspredicate
Objective-C: `continue` in collection enumeration block?

If I have an NSArray and I use enumerateUsingBlock to loop through elements in the array, but in some cases …

objective-c ios nsarray objective-c-blocks
Error : Command failed due to signal : Segmentation fault: 11

I am trying to get an array from dictionary, but I am getting an error for below line self.items = …

swift nsarray xcode6.1.1
How do I get unique values from an array

Please note this is for OSX, not for iOS. I have looked and tried some solutions in other SO questions, …

objective-c macos nsarray nsset
Best way to save to nsuserdefaults for custom class?

If I have a custom class Person which has three variables (which are propertized and synthesized): NSString* theName; float* theHeight; …

iphone objective-c nsarray nsdictionary nsuserdefaults
Rebuild an NSArray by grouping objects that have matching id numbers?

I have an NSArray and each object in the array has a groupId and a name. Each object is unique …

ios objective-c nsmutablearray nsarray