Top "Nsarray" questions

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

Filter Array of Objects with NSPredicate based on NSInteger property in super class

I've got the following setup: @interface Item : NSObject { NSInteger *item_id; NSString *title; UIImage *item_icon; } @property (nonatomic, copy) NSString *…

objective-c nsarray nspredicate kvc
Which has faster performance indexesOfObjectsPassingTest or filteredArrayUsingPredicate?

When needing to filter an NSArray to get a subset of the items in the array returned, which method is …

ios objective-c nsarray filtering performance-testing
Differences between [NSArray arrayWithArray:] and [NSArray copy]

lately I work much with arrays and I'm wonder.. what's diffrences between those two lines. NSArray *array = [NSArray arrayWithArray:someArray]; …

objective-c cocoa-touch cocoa nsmutablearray nsarray
arrayWithContentsOfFile can't read plist file

i have a plist with an array that contain 2 strings see image : http://imageshack.us/photo/my-images/263/myplist.png/ and …

iphone nsarray plist nsbundle
Use of undeclared identifier errors

i'm getting "use of undeclared identifier" errors in my .m file with the code below and can't seem to work …

objective-c ios nsarray undeclared-identifier
Copying an NSArray with mutable copies of the original elements

I am creating an array of dictionaries in a class. I want to return a copy of that array to …

objective-c cocoa nsmutablearray nsarray copying
Converting a CGRect to an NSValue in an Array and vice versa

I have an array, full of CGRects. That part is fine. The problem is when I go to retrieve the …

iphone nsarray cgrect
Sorting NSMutableArray using SortDescriptor AND Predicate possible?

I have an array of type "Restaurant" which has an NSSet of "Rating." Rating has an ID and a value. …

objective-c nsarray nspredicate nssortdescriptor
Converting NSArray to NSSet, custom class instances transfer inconsistently

Ran into a interesting little problem. I was writing a method to filter an array to the unique objects: - (…

objective-c cocoa nsarray nsset
objective-C, sort an array of strings containing numbers

Lets suppose I have an array like this NSArray* arr = @[@"1",@"4",@"2",@"8",@"11",@"10",@"14",@"9"]; //note: strings containing numbers and I want to sort them …

ios objective-c nsarray nssortdescriptor