• 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: 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.

  • Follow-Ups:
    • Re: NSStatusItem setTarget / setAction
      • From: David Blanton <email@hidden>
References: 
 >NSStatusItem setTarget / setAction (From: David Blanton <email@hidden>)

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