For all the power you get from dynamic typing, you also get the power to really “hurt yourself”.Because Objective-C is dynamically typed, one must pay really close attention to the warnings the compiler generates. Often these “warnings” are the compiler telling you that something won’t work at runtime. For example, a common warning is something like(and these are my own words): “I am not sure this receiver accepts this message”. That means you are probably not sending the right message to the object (message member function, receiver
object(pointer to the object). Also, pay close attention to the “Run Log” of Xcode when you are debugging. Any runtime exceptions, while cryptic at first, will make a lot of sense once you gain a bit of experience with Cocoa
Things to look for when programming in Cocoa(using Objective-C)
April 11, 2007 · Leave a Comment
Categories: Cocoa · Objective-C,ObjC
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.