Re: strange problem with performSelector:
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.