• 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: getting a selector for string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a selector for string


  • Subject: Re: getting a selector for string
  • From: Bryan Blackburn <email@hidden>
  • Date: Tue, 4 Feb 2003 01:40:38 -0700
  • Mail-followup-to: email@hidden

Yup, the function NSSelectorFromString() does that (and
NSStringFromSelector() will do the opposite).

Bryan


On Feb 4, 2003 03:32, Ken Tozier stated:
> I could have sworn that I saw some way to get a selector for a given a
> string that defines a method name, but I can seem to find it now.
>
> For example:
>
> NSString *methodName = @"goToBedItsLate";
>
> SEL methodSelector = SomeUnknownFunction( methodName );
>
> Is there any way to do this?
>
> Thanks,
>
> Ken
_______________________________________________
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: 
 >getting a selector for string (From: Ken Tozier <email@hidden>)

  • Prev by Date: getting a selector for string
  • Next by Date: Re: getting a selector for string
  • Previous by thread: getting a selector for string
  • Next by thread: Re: getting a selector for string
  • Index(es):
    • Date
    • Thread