Serious NSDocument problem
Serious NSDocument problem
- Subject: Serious NSDocument problem
- From: Nico <email@hidden>
- Date: Tue, 21 Jan 2003 21:58:11 +0100
Hi list :]
I've got a problem with NSDocumentController's -currentDocument method.
Let me explain :
When the application is active, no problem, the method just works fine.
*BUT*
When the application is not front, I encounter a big problem because
-currentDocument returns nil ! I assume it is based on [[NSApp mainWindow]
document] hence the nil document when my app is hidden or inactive...
How can I *really* get the active document ? I mean, the document -actually-
selected/edited by the user ?
Thanks you in advance.
Nico.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.