Re: NSDocument
Re: NSDocument
- Subject: Re: NSDocument
- From: David Blanton <email@hidden>
- Date: Thu, 14 Jan 2010 15:44:26 -0700
Ok. So I diagnose that MyDocument.xib was somehow hosed.
I deleted my main view which was embedded in a scroll view.
Added a custom view set its class to my class MainView.
Embedded MainView in a scroll view.
Compiled and ran.
And guess what, awakeFromNib in MyDocument.m which is a sub class of
NSDocument is now being called when I choose open.
Go figure.
Now I still need to delete LibraryObjectTemplate (which mysteriously
appeared, see separate post) but cannot delete noway no how.
Thanks for the comments.
-db
On Jan 14, 2010, at 3:24 PM, Klaus Backert wrote:
On 14 Jan 2010, at 22:51, David Blanton wrote:
No. This is a vanilla document based app with two nibs, MainMenu
and MyDocument as created by the project template.
The document window is in MyDocument.xib.
What is specified as the class of file's owner in the nib/xib file:
(a subclass of) NSDocument or (a subclass of) NSWindowController?
You can set and see this in the inspector's identity panel.
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden