FROM : Simon Liu
DATE : Thu Aug 10 23:04:47 2006
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_removed>> 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.
DATE : Thu Aug 10 23:04:47 2006
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_removed>> 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.
| Related mails | Author | Date |
|---|---|---|
| Simon Liu | Aug 10, 18:31 | |
| Michele Balistreri | Aug 10, 20:48 | |
| Simon Liu | Aug 10, 23:04 |






Cocoa mail archive

