Re: get class of a method's returned object
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