Re: Newbie - Dumb NSDocument Question
Re: Newbie - Dumb NSDocument Question
- Subject: Re: Newbie - Dumb NSDocument Question
- From: matt neuburg <email@hidden>
- Date: Thu, 18 Sep 2003 10:40:54 -0700
On Thu, 18 Sep 2003 10:52:27 -0400, Tom Gray <email@hidden> said:
>
My questions are becoming more and more basic and perhaps I should
>
resign from this discussion in disgrace. I apologize.
>
>
In my previous posts I detailed how my application insists on saving my
>
files with the incorrect CFBundleTypeName (aka docType) no matter what
>
I do. I then decided to skip that issue and re-wrote code to at least
>
try and open ANY docType.
>
>
Now, get this, when I double click on a previously saved file my
>
NSDocument subclass is instantiated but it doesn't instantiate it's
>
windowController and the nib is not loaded!
>
>
If I create a new document from the menu command the document subclass
>
creates a windowController and the nib opens.
>
>
What is not wired correctly?
It's all a matter of what you do in loadDataRepresentation:ofType:. Use the debugger to track what's happening here. The most important thing is that you must return YES or nothing will happen. m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.