objective-c-literals Questions
2
Solved
I came across the following:
NSArray *array = @[object1, object2];
It seems to be creating an NSArray, but is this array instance an autoreleased object, or must I release it?
Hagar asked 1/8, 2012 at 12:53
1
Solved
I read all about the new Objective-C literals, and used Xcode to convert my old code, but the indexing code didn't change. I changed it by hand but then it wouldn't compile. I saw a post that said ...
Interglacial asked 27/7, 2012 at 19:59
1
Solved
Are the new Objective-C literal syntax additions (e.g. @3.14) only available when developing for OS X and not iOS? That's what the Xcode update 4.4 seems to suggest. If so, why?
Maunder asked 25/7, 2012 at 16:8
2
Solved
It's always been possible to create NSArrays (and NSDictionaries/NSNumber) with vararg method calls, like:
[NSArray arrayWithObjects: @"a", @"b", @"c", nil];
Can these be created with in-line li...
Paction asked 13/3, 2012 at 23:14
© 2022 - 2024 — McMap. All rights reserved.