Home > Blogs > Cocoa Tip of the Day, 1/12/10

Cocoa Tip of the Day, 1/12/10

Remember the C in Objective-C.

Cocoa uses C structures and functions for things like manipulating points and rectangles, or ranges in strings.  Sometimes it is more convenient to use pure C for parts of your code.  Use object orientation when it's the best tool for the job, and primitive C code where it is more appropriate.

Cocoa Programming Developer's HandbookFor more tips, and more detail about this tip, please see my new book,
Cocoa Programming Developer's Handbook,
available in print and electronic formats.