-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi there,
I've got a code snippet here that I can't make working.
NSUInteger i;
//NSMutableArray *textures = [[NSMutableArray alloc] initWithCapacity:kNumTextures];
//NSMutableArray *texturesHighlighted = [[NSMutableArray alloc] initWithCapacity:kNumTextures];
NSMutableArray *textures= [[NSMutableArray…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have two NSArray objects that I would like to be sorted the same. One contains NSString objects, the other custom Attribute objects. Here is what my "key" NSArray looks like:
// The master order
NSArray *stringOrder = [NSArray arrayWithObjects:@"12", @"10", @"2", nil];
The NSArray with custom…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an NSMutableArray that is populated with objects of strings. For simplicity sake we'll say that the objects are a person and each person object contains information about that person.
Thus I would have an NSMutableArray that is populated with person objects:
person.firstName
person.lastName
person…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
At some point in my Application, I have an NSArray whose contents change. Those contents are shown in a UITableView. I'm trying to find a way to find the diff between the contents of before and after of the NSArray so i can pass the correct indexPaths to insertRowsAtIndexPaths:withRowAnimation: and…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So, my second question based off of this application I'm teaching myself Objective C with. I have a Data Source class, which for now looks mostly like:
- (id) init
{
if (self = [super init]){
listNames = [[NSArray alloc] initWithObjects: @"Grocery", @"Wedding", @"History class",@"CS Class"…
>>> More