• 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 class of a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get class of a method


  • Subject: Re: get class of a method
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 23 Feb 2015 00:31:06 -0600

On Mon, Feb 23, 2015, at 12:18 AM, Maxthon Chan wrote:
> In Objective-C, methods are called my sending messages, and message
> selectors are not bounded to a class.
>
> You can walk all loaded classes and try to work out the classes that
> responds to the message selector in question, but beware classes that
> descended from the old Object class (not NSObject or NSProxy) that does
> not work with (most) introspection methods and runtime functions.

For those who have only read the subject line: this thread isn't about
finding out what class an IMP belongs to. It's about finding out what
class of object a method is declared to return. And that information
simply is not available.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: get class of a method's returned object
      • From: BareFeetWare <email@hidden>
    • Re: get class of a method
      • From: Alex Zavatone <email@hidden>
References: 
 >get class of a method (From: BareFeetWare <email@hidden>)

  • Prev by Date: Re: Color fun with IBOutlet named "appNameLabel"
  • Next by Date: Re: Unknown class ‘MyCustomView', using 'NSView' instead
  • Previous by thread: Re: get class of a method
  • Next by thread: Re: get class of a method
  • Index(es):
    • Date
    • Thread