Re: NSStatusItem setTarget / setAction
Re: NSStatusItem setTarget / setAction
- Subject: Re: NSStatusItem setTarget / setAction
- From: David Blanton <email@hidden>
- Date: Wed, 18 Jun 2003 16:58:19 -0600
On 6/18/03 5:00 PM, "Daniel Jalkut" <email@hidden> wrote:
>
On Wednesday, June 18, 2003, at 03:24 PM, David Blanton wrote:
>
>
> [theItem setAction: @selector(iconClicked)];
>
>
Hi David - I didn't look carefully at the rest of your code, so there
>
may be other problems. But this is enough to stop you up. The
>
selector for your method is not "iconClicked". Because it takes a
>
parameter, it's actually "iconClicked:" (note the colon). Without this
>
colon, the obj-C runtime will be looking for a method that takes no
>
parameters.
>
>
Try adding the colon and see if that fixes your problem.
>
>
Good luck,
>
Daniel
>
I added the colon and still get response to a click? Any other ideas?
TIA
--
David Blanton
"Cocoa FNG"
_______________________________________________
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.