• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading Nibs which are self-ref
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Loading Nibs which are self-ref
      • From: Wim Lewis <email@hidden>
    • Re: Loading Nibs which are self-ref
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Using a Soundex category...
  • Next by Date: Re: Using a Soundex category...
  • Previous by thread: Re: Using a Soundex category...
  • Next by thread: Re: Loading Nibs which are self-ref
  • Index(es):
    • Date
    • Thread