• 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
Runtime class info in ObjC/Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Runtime class info in ObjC/Cocoa


  • Subject: Runtime class info in ObjC/Cocoa
  • From: Luc Heinrich <email@hidden>
  • Date: Fri, 27 Jul 2001 18:03:34 +0200

Hi,

Is there a way, in Objective-C in general and/or in Cocoa specifically, to discover at runtime the methods that a particular class/instance implements ?

In Java, you just have to do that:
Method[] methodList = someClass.getMethods();

Is there anything similar in ObjC/Cocoa ? Something that could give me back a SEL list, which I could then put into the magic 'NSStringFromSelector' thingy, for example... I had a look at the NSObject class, and various objc runtime headers, but I did not found something that could help.

Any clue ? Thanks.

--
Luc - email@hidden


  • Follow-Ups:
    • Re: Runtime class info in ObjC/Cocoa
      • From: Greg Titus <email@hidden>
  • Prev by Date: Running normally-GUI Cocoa apps as background processes
  • Next by Date: Easy Question / Complicated buttons
  • Previous by thread: Re: Running normally-GUI Cocoa apps as background processes
  • Next by thread: Re: Runtime class info in ObjC/Cocoa
  • Index(es):
    • Date
    • Thread