Re: Double Clicking File Isn't Working to Load NSDocument
Re: Double Clicking File Isn't Working to Load NSDocument
- Subject: Re: Double Clicking File Isn't Working to Load NSDocument
- From: Darrin Cardani <email@hidden>
- Date: Wed, 14 Apr 2004 08:41:01 -0500
At 10:00 PM -0700 4/13/04, Craig Bakalian <email@hidden> wrote:
I have a pretty big project. It is a multiple document app. I can
open the documents defined in its plist when the app is up and running
via the open menu command. Yet, all of a sudden double clicking a file
isn't opening the file in the application. The app fires up and no
document with window controller and user interface. I do have a sub
class of NSDocumentController in my main nib file. But it has always
worked. None of my clients or users are complaining. Could this be
something on my hard drive that I am ignorant of?
Do I have a way of debugging this, because the app has to be
unlaunched, so, the double clicking of the file opens the app, and
opens the file with window controller. I am lost in this one. Help...
Have you checked the console log? What's probably happening is that
something is raising an exception and it's not being caught, and the
document opening process is just stopping. You could also put some
debugging statements in things like loadDataRepresentation:ofType: or
whichever method is doing your document opening, and see if they get
printed to the console.
I had a similar problem and found that it had to do with how I had
overridden my document's -setTitle: method. I was doing something to
the Windows menu that was causing an exception to be thrown outside
of my code. The message in the console wasn't real helpful, but
eventually, it pointed me to the right place.
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<
http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.