• 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
Re: What's the best way to access top level objects loaded from a nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the best way to access top level objects loaded from a nib?


  • Subject: Re: What's the best way to access top level objects loaded from a nib?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 16 Mar 2009 22:27:26 +1100


On 16/03/2009, at 10:12 PM, Ken Tozier wrote:

I tried adding an IBOutlet to the class that loads the nib, but these objects are meant to be generic building blocks and setting filesOwner to a specific class doesn't make any sense.


Suggestion: why not make Files Owner be some sort of factory class that just dishes out views or the parts you want on demand? It could also take care of duplicating views on behalf of its clients if it needs to (given that you need to this by archiving/dearchiving). Internally the factory would use IBOutlets but you could hide all that from its clients.

I've used this approach with success.

--Graham


_______________________________________________

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


References: 
 >What's the best way to access top level objects loaded from a nib? (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Type Declaration With Protocol
  • Next by Date: Re: Type Declaration With Protocol
  • Previous by thread: What's the best way to access top level objects loaded from a nib?
  • Next by thread: Renaming a file
  • Index(es):
    • Date
    • Thread