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 (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