Loading a view XIB with different owner types?
Loading a view XIB with different owner types?
- Subject: Loading a view XIB with different owner types?
- From: Randall Meadows <email@hidden>
- Date: Fri, 12 Dec 2008 13:49:36 -0700
I have a view XIB (basically a customized NSTextView) whose File's
Owner is configured to be class Foo.
I would like to reuse that same XIB in a different part of my code,
but the loading owner is a completely different class, Bar.
I tried adding the same outlets that Foo has to Bar, and then loading
the XIB using Bar as the owner, but that didn't work--the outlet
didn't get connected. That's kinda what I expected to happen,
actually, but I was hoping...
Is it possible to load a single XIB using different owner types, or do
I have to duplicate this view XIB for each different type of owner I
want to use it with?
Thanks!
randy
_______________________________________________
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