Re: DocumentController - detect source of request to open document?
Re: DocumentController - detect source of request to open document?
- Subject: Re: DocumentController - detect source of request to open document?
- From: "Simon Liu" <email@hidden>
- Date: Thu, 10 Aug 2006 22:04:47 +0100
Michele, that was the right approach. It seems the document
controller method openDocument... gets invoked before the application
finishes launching. Thanks for the pointer.
On 8/10/06, Michele Balistreri <email@hidden> wrote:
I never tried this in a document based application, however when an
application is opened the openFile..method is called before the
NSApplicationDidFinishLaunch notification is sent, so i make a BOOL
which i set to a value in the init method and change its value in the
handler of that notification. Based on the status of that BOOL if the
application was open by finder or dragging a file on it or it was
open by double clicking on it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden