• 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: James Maxwell <email@hidden>
  • Date: Tue, 18 May 2010 17:26:19 -0700

Yes, this is basically what I've done, and it does seem to work...

On 2010-05-18, at 4:49 PM, Jens Alfke wrote:

>
> On May 18, 2010, at 4:28 PM, James Maxwell wrote:
>
>> I know this is probably really simple, but how do I grab a reference to a controller object loaded only in the MainMenu.nib file?
>
> You can add an outlet to your app controller object pointing to that controller object, and then add an accessor method that returns it.
>
> @interface MyAppController : NSObject
> {
> 	IBOutlet Central_MIDI_Controller* _midiController;
> }
> @property Central_MIDI_Controller* midiController;
> @end
>
>
> @implementation MyAppController
> @synthesize midiController = _midiController
> @end
>
> Then just wire up _midiController in IB.
>
> —Jens

James B Maxwell
Composer/Doctoral Student
School for the Contemporary Arts (SCA)
School for Interactive Arts + Technology (SIAT)
Simon Fraser University
email@hidden
email@hidden

_______________________________________________

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

  • Follow-Ups:
    • Re: Get controller from nib
      • From: James Maxwell <email@hidden>
References: 
 >Get controller from nib (From: James Maxwell <email@hidden>)
 >Re: Get controller from nib (From: Jens Alfke <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