Re: NSDocument Deferred loading
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.