Programmatically Open NSDocument Based Window.
Programmatically Open NSDocument Based Window.
- Subject: Programmatically Open NSDocument Based Window.
- From: Bruce Cresanta <email@hidden>
- Date: Thu, 27 Jan 2011 06:54:22 -0700
Hello,
I am trying to open an NSDocument based window. My NSDocument class follows the standard (MyDocument) class created using the automatic project settings. I do initialization in the awakeFromNib override within MyDocument.
To create the document I use:
id myDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:&error];
The awakeFromNib initializations ARE SKIPPED in this call.
Does anyone know a way to initialize NSDocument other than in awakeFromNib (I have nib related bindings)?
or
Does anyone know a way to instantiate the NSDocument such that awakeFromNib is called?
Thanks,
Bruce
_______________________________________________
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