Re: Why are my menu items gray?
Re: Why are my menu items gray?
On Wed, Apr 23, 2003 at 03:41:01PM +0000, Peter Karlsson wrote:
>
The deviceAction method is already implemented like this:
>
>
- (IBAction)deviceAction:(id)sender
>
{
>
NSLog(@"deviceAction");
>
}
>
>
Can it be my wiring in IB? menuOutlet is the Outlet connected to the whole
>
menu. deviceOutlet is the Outlet connected to just my device menu. Is that
>
right or wrong?
Wrong. The target is the object to which the action message is sent,
not the menu itself. If deviceAction: and your menu setup code are
executed as part of the same object, then the target should simply be
self.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.