Sometimes I feel sad when I cannot use Python. In Python, I process an array of arguments, unpacking them as such:
name, handle, parent_handle, [left, top, right, bottom], showing, scrollable = data
Now I have to do the same in Objective-C, with NSArray s. I am doomed to 11 lines:
NSString *name = (NSString *)[data objectAtIndex:0]; NSNumber *handle = (NSNumber *)[data objectAtIndex:1];
or is there a better way?
objective-c
Claudiu
source share