Re: Problems launching doc-based app by double-clicking data files
Re: Problems launching doc-based app by double-clicking data files
- Subject: Re: Problems launching doc-based app by double-clicking data files
- From: Rick Hoge <email@hidden>
- Date: Tue, 21 Sep 2004 16:18:06 -0400
One particularly annoying scenario happens when the app is already
running, and a document is opened by double-clicking. The running
app correctly tries to open the document, but when it comes time to
display it in a window the nib load fails because of failure to find
a Value Transformer used in support of bindings for the UI. Does
this call to mind any known Cocoa bugs or programming errors that
people know of? The program runs fine if the document is dragged
onto the Dock icon of the running app or loaded via the File > Open
panel.
Are you sure that the app is running when you double click the
document? This sounds a lot like the problem that happens when you
register a value transformer in applicationDidFinishLaunching (which
happens _after_ documents used to launch the app are openned/a default
blank new document is created, which is of course too late).
You are right - this is probably the problem. Now that you mention it
I remember the thread on this topic (seems like early code examples
used applicationDidFinishLaunching). I got lead astray by other
problems in which the wrong version was launched... I think your
explanation probably accounts for at least some of the problems we've
seen. Thanks!!
_______________________________________________
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