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

Cocoa Tip of the Day, 1/5/10

Put controllers in nib files.

Interface Builder lets you connect up arbitrary sets of objects in nib files.  You can then load copies of these objects at run time.  If you define connections between objects in nibs, rather than in code, it makes it much easier to reuse the objects.

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.

Become an InformIT Member

Take advantage of special member promotions, everyday discounts, quick access to saved content, and more! Join Today.