• 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: Get a selector type (SEL) from a string dinamically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get a selector type (SEL) from a string dinamically


  • Subject: Re: Get a selector type (SEL) from a string dinamically
  • From: Tito Ciuro <email@hidden>
  • Date: Thu, 14 Jul 2005 18:54:19 -0400

Giovanni,

Check the archives:

http://cocoa.mamasam.com/COCOADEV/2002/01/2/22524.php

-- Tito

On 14/07/2005, at 18:47, Giovanni Donelli wrote:

Hello,
does anybody know a way to get a SEL datatype out from a Class datatype (or an Object) from a string?


I would like a function such as:

SEL method = SelectorFromString( myClass, (NSString*)myMethodName)

so then I can use it such as follows:

objc_msgSend(myClass, myMethodName);

Thanks!

Giovanni
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Get a selector type (SEL) from a string dinamically (From: Giovanni Donelli <email@hidden>)

  • Prev by Date: Re: C++ thread messaging cocoa thread
  • Next by Date: Re: Get a selector type (SEL) from a string dinamically
  • Previous by thread: Get a selector type (SEL) from a string dinamically
  • Next by thread: Re: Get a selector type (SEL) from a string dinamically
  • Index(es):
    • Date
    • Thread