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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to