Re: NSStatusItem setTarget / setAction
Re: NSStatusItem setTarget / setAction
- Subject: Re: NSStatusItem setTarget / setAction
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 18 Jun 2003 16:00:41 -0700
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
_______________________________________________
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.