Re: NSDocument Deferred loading
Re: NSDocument Deferred loading
- Subject: Re: NSDocument Deferred loading
- From: Eyal Redler <email@hidden>
- Date: Tue, 09 Mar 2004 19:50:21 +0200
This brings me to my questions:
a. Where should I put the parsing/dialog code? (I'm think about doing
it in showWindows:)
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.
Actually showing the dialog isn't the problem. It already appears fine
in fact.
I wasn't very clear about that, 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)
Eyal Redler
------------------------------------------------------------------------
------------------------
"If Uri Geller bends spoons with divine powers, then he's doing it the
hard way."
--James Randi
_______________________________________________
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.