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_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to