On Oct 16, 2013, at 3:39 PM, Charles Srstka <cocoa...@charlessoft.com> wrote:

> 3. (This is the one I'd recommend) Instead of using NSNib, make a subclass of 
> NSWindowController (if your nib defines a window) or NSViewController (if 
> your nib defines a view). Then use either -[NSWindowController 
> initWithWindowNibName:] or -[NSViewController initWithNibName:bundle:] to 
> load the nib. This will produce correct behavior on any version of OS X, 
> including 10.7, and gives you a few other niceties as well.

I'd second this; it's what I've been doing since 10.3 for non-document apps, 
and it works well. (I didn't even know about the NSNib stuff; I guess we 
started at different ends of the docs when we first tried to figure this out, 
you at nibs, and me at window controllers.)

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to