• 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 a view XIB with different owner types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Next by Date: Re: Announce the time every 30 minutes
  • Previous by thread: Re: Encoding a Custom Object which has a CALayer instance Variable (newbie Question)
  • Next by thread: NSBitmapImageRep orientation?
  • Index(es):
    • Date
    • Thread