Re: setAction:@selector is not working ?
Re: setAction:@selector is not working ?
- Subject: Re: setAction:@selector is not working ?
- From: "David M. Cotter" <email@hidden>
- Date: Fri, 19 Feb 2010 11:43:42 -0800
just before the line of code that pops up the menu, i iterate over all the items
so yes, i am absolutely sure it is getting called
and i am absolutely sure that myMenuItem is non null
i'm just wondering if there is something which pre-empts my code, telling the menu item to NOT call the action selector. what could *possibly* intervene here?
On Feb 19, 2010, at 11:38 AM, Jens Alfke wrote:
>
> On Feb 19, 2010, at 11:31 AM, David M. Cotter wrote:
>
>> i'm completely baffled by this. does anyone have a hint?
>>
>>>> i'm going to do a popup menu
>>>> i run thru all the items and call
>>>>
>>>> [myMenuItem setAction:@selector(myFunction:)];
>
> Where is that line of code? Are you sure it's getting called on the first run? Are you sure that 'myMenuItem' is non-nil? Try putting in some breakpoints or NSLog calls to make sure.
>
> —Jens
_______________________________________________
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