Re: MyDocument's Window Outlet...
Re: MyDocument's Window Outlet...
- Subject: Re: MyDocument's Window Outlet...
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 12 Nov 2008 12:16:07 -0700
On Nov 12, 2008, at 11:22 AM, Jean-Nicolas Jolivet wrote:
Of course the easy work around was to declare a new outlet that I
named "mainWindow" and connected to my file owner, that way I can
access the main window from my code... but still I was wondering why
it is not possible to access the "window" outlet that is created
automatically with every new "Document Based" project...? What's the
use of this outlet if I can't access it in my code?
NSDocument's ivars are private. Use the -windowControllers accessor
method instead to get the document's main window controller, from
which you can get the window's pointer.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden