• 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: strange problem with performSelector:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange problem with performSelector:


  • Subject: Re: strange problem with performSelector:
  • From: Greg Titus <email@hidden>
  • Date: Thu, 31 Jan 2002 16:39:02 -0800

Hi Fei,

The problem is that your selector should be @selector(nop) NOT @selector(nop:). The latter name would only be correct if your method had an argument.

-Greg

On Thursday, January 31, 2002, at 04:20 PM, email@hidden wrote:

Hello all,
I meet a strange problem. I have a method in myController class which derive from NSObject
-(void)nop
{
//do nothing;
}

If I use
[self performSelector:@selector(nop:) withObject:nil afterDelay:5];
or [self performSelector:@selector(nop:) withObject:nil];
There will be error message:-[myController nop:]: selector not recognized.

But if I use [self nop]; There's no error. I also try other methods in myController class. I got same problem. I'm really confused why it happened.

Thanks very much if anybody can help me out!

Fei
_______________________________________________
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: 
 >strange problem with performSelector: (From: email@hidden)

  • Prev by Date: strange problem with performSelector:
  • Next by Date: Re: reading in text files
  • Previous by thread: strange problem with performSelector:
  • Next by thread: Re: reading in text files
  • Index(es):
    • Date
    • Thread