• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DocumentController - detect source of request to open document?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >DocumentController - detect source of request to open document? (From: "Simon Liu" <email@hidden>)
 >Re: DocumentController - detect source of request to open document? (From: Michele Balistreri <email@hidden>)

  • Prev by Date: Re: Threads and synchronization
  • Next by Date: Re: NSURLConnection retains its delegate
  • Previous by thread: Re: DocumentController - detect source of request to open document?
  • Next by thread: TextView question
  • Index(es):
    • Date
    • Thread