• 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's returned object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get class of a method's returned object


  • Subject: Re: get class of a method's returned object
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 23 Feb 2015 16:06:07 -0600

On Mon, Feb 23, 2015, at 03:45 PM, Kyle Sluder wrote:
> On Mon, Feb 23, 2015, at 03:22 PM, BareFeetWare wrote:
> > @interface NSObject (Private)
> > - (NSString *) _shortMethodDescription;
> > @end
> >
> > NSString *fullMethodList = [[self class] _shortMethodDescription];
> >
> > which gives the full header breakdown of methods with parameters and
> > return classes.
>
> I have no idea what method that is, but it is not part of Apple's
> frameworks:

Heh. This has been an exercise in learning my own framework. That
*PRIVATE* method *ON WHOSE EXISTENCE YOU SHOULD NOT RELY* only exists on
iOS.

It doesn't do anything special, and it doesn't print out specific object
types for methods. -[NSObject description] is typed to return NSString*,
but that method prints:

		- (id) description; (0xptr2impl)

--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>
References: 
 >get class of a method (From: BareFeetWare <email@hidden>)
 >Re: get class of a method (From: Kyle Sluder <email@hidden>)
 >Re: get class of a method's returned object (From: BareFeetWare <email@hidden>)
 >Re: get class of a method's returned object (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSOpenPanel() crash in Swift 1.1 -- SOLVED?
  • Next by Date: Re: scale text proportionally as bounds increase
  • Previous by thread: Re: get class of a method's returned object
  • Next by thread: Re: get class of a method's returned object
  • Index(es):
    • Date
    • Thread