Re: about @selector
Re: about @selector
- Subject: Re: about @selector
- From: email@hidden
- Date: Fri, 10 May 2002 10:34:50 -0700
nicolas berloquin wrote:
|That is, you could have the user enter a string, say "mymethod:", then
|get this string, and call the function by creating a selector with the
|string @selector(mystring) (or something close to that).
Properly, you'd write NSSelectorFromString(myString). @selector is used only for literal method names (e.g. @selector(addObject:atIndex:)).
|That's very efficient and cool when you want to have dynamic plugins etc
| etc, something more difficult to do in c++...
Not necessarily more difficult, but certainly you'd have to do it differently.
Glen Fisher
_______________________________________________
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.