Top "Nsarray" questions

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

How to sort NSArray of objects based on one attribute

I am trying to sort an array of managed objects alphabetically. The attribue that they need to be sorted by …

iphone objective-c ios sorting nsarray
How to turn an NSArray of strings into an array of unique strings, in the same order?

If you have an NSArray of strings { @"ONE", @"ONE", @"ONE", "TWO", @"THREE", @"THREE" } How would I turn that into { @"ONE", @"…

iphone objective-c ios nsarray nsset
How get the total sum of NSNumber's from a NSArray?

I have a large NSArray containing NSNumbers like 3, 4, 20, 10, 1, 100, etc... How do I get the total sum of all these NSNumbers (3 + 4 + 20 + 10 + 1 + 100 + …

iphone objective-c nsarray nsnumber nsinteger
How to create an "array of selectors"

I'm using the iPhone SDK (3.0) and I'm trying to create an array of selectors to invoke a variety of methods …

ios objective-c nsarray selector
Sorting Array Using NSSortDescriptor

I have an array of class A objects, let it be detailsArray. Class A has date, name as properties. Can …

objective-c nsarray nssortdescriptor
Use NSArray to specify otherButtonTitles?

UIAlertSheet's constructor takes an otherButtonTitles parameter as a varg list. I'd like to specify the other button titles from an …

iphone nsarray uialertsheet
Getting unique items from NSMutableArray

I have a question about Objective-C today involving NSMutableArray. Coming from a .net/c# background I'm having some trouble working …

objective-c nsmutablearray nsarray
NSArray objectAtIndex: shorthand

Possible Duplicate: Is there some literal dictionary or array syntax in Objective-C? I have recently noticed that something strange seems …

ios objective-c nsarray shorthand
How to determine an array index in Objective C?

I have two arrays in Objective C and I need to find what index something is so I can insert …

objective-c cocoa search nsmutablearray nsarray
Filtering NSArray of NSDictionary objects using NSPredicate

I have an NSArray of NSDictionary objects. I want to filter the array based on keys of the dictionaries using …

iphone ios nsarray nsdictionary nspredicate