• 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: NSDocument Deferred loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument Deferred loading


  • Subject: Re: NSDocument Deferred loading
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 9 Mar 2004 19:24:43 +0100

On 9. Mar 2004, at 18:50, Eyal Redler wrote:

Have you considered to make the requester sort of your document? So if the file exists and the requester needs to appear, that is your document, hence you return YES from the loadDataRepresentation and in an overloaded makeWindowControllers you "make" the only the window controller for the requester, and a "Continue" (or whatever) will make the real window controller for the document.
[...] but the problem is choosing the best place so I can abort the document opening depending on the dialog's result without letting the "system" know about it. (That is, have the document controller believe that the document has already been opened fine)

Hence my suggestion -- you can't really abort loading the document in the loadDataRepresentationOfType and pretend like everything went a okay...
_______________________________________________
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.


References: 
 >NSDocument Deferred loading (From: Eyal Redler <email@hidden>)
 >Re: NSDocument Deferred loading (From: Allan Odgaard <email@hidden>)
 >Re: NSDocument Deferred loading (From: Eyal Redler <email@hidden>)

  • Prev by Date: Re: Convert Charatcers
  • Next by Date: Re: Convert Charatcers
  • Previous by thread: Re: NSDocument Deferred loading
  • Next by thread: Re: NSDocument Deferred loading
  • Index(es):
    • Date
    • Thread