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 (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 [EMAIL PROTECTED]

Reply via email to