Objective-C is a fairly straightforward language (main thing is to be aware of memory leaks for inline creation;usage;discard idioms that should be avoided or mitigated with autorelease pools).
But there is a little of learning to do with the built in object types. For example NSArray (and mutable version) has to everything be an object. So one can use NSNumber to store numbers, NSValue for other types, NSNull for nil. Another facet is using NSEnumeration to go over objects or better to use NSFastEnumeration protocol to do a for (Buttons* b in buttons) { or one can do [buttons reverseObjectEnumerator] to traverse backwards.
It is a lot to take in. I guess one should just embrace the documentation, maybe trying to get pattern matching.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment