• 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
Preferencepanel.xib file with an extra delegate object place inside
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preferencepanel.xib file with an extra delegate object place inside


  • Subject: Preferencepanel.xib file with an extra delegate object place inside
  • From: jon <email@hidden>
  • Date: Mon, 21 Sep 2009 19:45:06 -0600

I've created a preference panel controller object and xib file which are normal, except for the fact that i've also placed an extra object in the xib file.

the sole purpose of this extra custom controller object ////(sole purpose of it being in this xib, it has a whole other life in it's own xib)/// is so that i can make this custom object the delegate of the PreferencePanelController.... by a single connectiong in IB
from the preference panel controller delegate to this extra custom controller object, (which i need to access one of it's methods)


the problem is that this custom controller object has an awakeFromNib method, for it's own window object.

so everytime i call the preference panel, the awakeFromNib in the custom controller object is fired....

hopefully some well heeled cocoa sailer captain here is going to tell me there is a way around this situation (other than "don't do that") where you'd think the engineers have thought about how you would go about connecting up delegates and just plain old methods (like main menu submenu Preference, being connected to a different file (different object in that file) (the preference panel controller object)

hopefully i can create these "extra objects in Xib files" all i want, and be-able to get around this action, because I constantly need to fire off other panels and windows from say the
main menu, or preference panel.... is there a way??


thanks in advance,
Jon.
_______________________________________________

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: Re: Why am I always getting the linker error: 'duplicate symbol'...?
  • Next by Date: Re: Printing to NSData
  • Previous by thread: Redraw layer during animation
  • Next by thread: drawing/masking one image with the alpha value from another
  • Index(es):
    • Date
    • Thread