CocoaDev

Edit AllPages

(Based on a mailing list post by Scott Herz.)

Usually the windows you display in your application will come from a NibFile inside your application’s main bundle. But this may not always be the case; sometimes it might be better to load a window from some other bundle than your own.

Loading a NibFile from a bundle is a little more difficult than from your application code. Why? *+[NSBundle loadNibNamed:] * will only look for the NibFile in your main bundle (your app). So, you’ll need to use the correct bundle to find and load your NibFile. Here’s an example: