• 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: not performing selector...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not performing selector...


  • Subject: Re: not performing selector...
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 3 Nov 2003 02:25:20 -0500

On Nov 3, 2003, at 2:13 AM, Malcolm Sharman wrote:

[theList setDoubleAction:@selector(collectData:) ];

And collectData is an instance method of the same class defined as

-(void)collectData

The colon in the selector name is significant. You've told theList to send a "collectData:"; message, but the method you've defined here is "collectData" - note the absence of a colon.

Action methods always receive a single parameter, so your method should be:

-(void) collectData:(id)sender

sherm--
_______________________________________________
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: 
 >not performing selector... (From: Malcolm Sharman <email@hidden>)

  • Prev by Date: Re: not performing selector...
  • Next by Date: Help with Undo and MVC
  • Previous by thread: Re: not performing selector...
  • Next by thread: Re: not performing selector...
  • Index(es):
    • Date
    • Thread