| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I've noticed that dealing with large structs of NSStrings can get really annoying ("copying" these structs can only be done via copying each NSString in them [right?]). So should I make all of these into classes, providing accessor methods? Or am I missing out on something again?
Depends on the actual task of course, but most probably, instead of structs you want to use dictionaries:
[mydict setObject:o forKey:@"whatever"]; // instead of mystruct.whatever=o
o=[mydict objectForKey:@"whatever"]; // instead of o=mystruct.whatever
| References: | |
| >Re: Returning structs of NSStrings (From: Ondra Cada <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.