Skip navigation.
 
mlSerious NSDocument problem
FROM : Nico
DATE : Tue Jan 21 21:58:11 2003

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
No related mails found.