Top "Nsarray" questions

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

indexOfObject vs. indexOfObjectIdenticalTo

What is the difference between these two NSArray methods?

objective-c nsarray
Create a NSSet from NSArray based on property

How does one create a NSSet of objects from an array based on a property. e.g. Array of objects, …

objective-c nsarray nsset
Difference between @[] and [NSArray arrayWithObjects:]

Possible Duplicate: Should I prefer to use literal syntax or constructors for creating dictionaries and arrays? Is there any difference …

objective-c nsarray objective-c-literals
How to perform binary search on NSArray?

What is the simplest way to do a binary search on an (already) sorted NSArray? Some potential ways I have …

objective-c ios algorithm nsarray binary-search
Change the values within NSArray by dereferencing?

I've come across a problem related to pointers within arrays in objective-c. What I'm trying to do is take the …

objective-c pointers nsarray dereference
Executing Blocks From NSArray?

I was just thinking, as you can treat Blocks like objects if I create two of them and then add …

iphone objective-c cocoa-touch nsarray objective-c-blocks
KVO Notifications for a Modification of an NSArray backed by a NSMutableArray

I am trying to use KVO to listen to collection change events on an NSArray property. Publicly, the property is …

ios objective-c ios7 nsarray key-value-observing
How to stop enumerateObjectsUsingBlock Swift

How do I stop a block enumeration? myArray.enumerateObjectsUsingBlock( { object, index, stop in //how do I stop the enumeration in …

objective-c nsarray block swift enumeration
Why does a (copy, nonatomic) NSMutableArray property create NSArrays?

I made a mistake while creating a TableView class, and accidentally kept my @property as copy when I defined it: @…

ios objective-c nsmutablearray nsarray
Subtract objects in one NSArray from another array

I have two NSArrays: NSArray *wants = [NSArray arrayWithObjects: @"apples", @"oranges", @"pineapple", @"mango", @"strawberries", nil]; NSArray *needs = [NSArray arrayWithObjects: @"apples", @"pineapple", @"…

objective-c cocoa cocoa-touch nsarray subtraction