|
From: | David Ayers |
Subject: | Re: NSInvocation problem: works with no args, doesn't with arguments |
Date: | Mon, 25 Aug 2003 22:42:00 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
PUYDT Julien wrote:
@interface Helper: NSObject +(void)withargs: (int)unused; +(void)noarg; @end @implementation Helper +(void)withargs: (int)unused { NSLog(@"invocation of withargs"); }
[snip]
sel = @selector(withargs);
The ':' is part of the selector. Try: sel = @selector(withargs:); Cheers, David
[Prev in Thread] | Current Thread | [Next in Thread] |