Things to look for when programming in Cocoa(using Objective-C)

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 \approx member function, receiver \approx 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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s