Loading Nibs which are self-ref
Loading Nibs which are self-ref
- Subject: Loading Nibs which are self-ref
- From: Kevin Muldoon <email@hidden>
- Date: Wed, 06 Jul 2011 17:43:06 -0400
I'm seeking to do a copyObject class that has it's own progress window. So, I'm doing my research and I see a technique for loading a nib with an object, like so...
MyDocument *myDocument = [[MyDocument alloc] init];
[NSBundle loadNibNamed:@"MyDocument" owner:myDocument];
[owner:myDocument doAnInterestingMethodToTheWindow];
Now, this looks like it's the compartmentalization I want when building UI!
Andrew Stone takes things even father. http://www.stone.com/The_Cocoa_Files/Doing_Objects_Right.html
So, I've been banging away at this for 10+ hours and things aren't working quite as expected. Given all the changes in xCode/Cocoa in the last 2 years, I'm wondering if I'm looking at antiquated techniques and need to be looking elsewhere for handling multiple windows.
Kevin Muldoon
e: 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