• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSStatusItem setTarget / setAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSStatusItem setTarget / setAction (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: NSStatusItem setTarget / setAction
  • Next by Date: Apple Event processing delay
  • Previous by thread: Re: NSStatusItem setTarget / setAction
  • Next by thread: Apple Event processing delay
  • Index(es):
    • Date
    • Thread