• 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: Get controller from nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get controller from nib


  • Subject: Re: Get controller from nib
  • From: Mark Ritchie <email@hidden>
  • Date: Tue, 18 May 2010 17:11:00 -0700

Hey James!

On 18/May/2010, at 5:00 PM, James Maxwell wrote:
> From the MIDIInstrument init, I can run [[NSApp delegate] midiController] and get the instance of Central_MIDI_Controller loaded in the nib. As I say, it feels a bit hackish. Though it does work, and advice is still welcome.

Sure, that works in a pinch but doesn't work so well when you might want to connect different parent objects to the child objects in the nib file.  Using FilesOwner is much more flexible.   And yes, I know that you can change the NSApp delegate each time before opening a new nib file (and I might have even done that many moons ago ;-) however that is really getting hackish! ;-)
M.
_______________________________________________

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: 
 >Get controller from nib (From: James Maxwell <email@hidden>)
 >Re: Get controller from nib (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: Get controller from nib
  • Next by Date: Re: Get controller from nib
  • Previous by thread: Re: Get controller from nib
  • Next by thread: Re: Get controller from nib
  • Index(es):
    • Date
    • Thread