• 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: about @selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: about @selector (From: nicolas berloquin <email@hidden>)

  • Prev by Date: Re: gcc 3.1 and c++ exception ?
  • Next by Date: Custom TextField/FieldEditor FIXED
  • Previous by thread: Re: about @selector
  • Next by thread: Re: about @selector
  • Index(es):
    • Date
    • Thread