On Jul 19, 2010, at 14:37:01, Quincey Morris wrote:

> On Jul 19, 2010, at 13:33, Rick Mann wrote:
> 
>> I have a basic NSDocument-based app with no window controllers.
> 
> There really isn't such a thing. A "basic" NSDocument object creates its own 
> window controller behind the scenes (see the 'windowNibName' method). 
> Conversely, a NSDocument object that you somehow forced to operate without a 
> window controller couldn't be considered "basic".

Well, by "no window controllers" I meant, no custom window controllers. 
However, I have gone ahead and added one.

> The easiest solution is to create a window controller subclass that overrides 
> 'windowDidLoad' to change the window's state. You'd then replace your 
> document's 'windowNibName' method with a 'makeWindowControllers' method that 
> creates an instance of your subclass and invokes 'addWindowController:'.

-windowDidLoad is called when the nib loads, but really I'm interested in 
opening the drawer after window becomes visible.

However, someone else pointed out that drawers are deprecated, so I guess I 
need to re-think my UI.

> 
> 
> _______________________________________________
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to