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: BareFeetWare <email@hidden>
- Date: Wed, 25 Feb 2015 07:26:46 +1100
Hi Kyle,
Yes, I am running this on iOS. Sorry, I didn't make that clear.
Yes, you are quite right. _shortMethodDescription only shows (id) as the return class, so even this private method doesn't help me. I shall now abandon all hope 😉
Thank you for your attempts. Much appreciated.
Thanks,
Tom
Tom Brodhurst-Hill
BareFeetWare 👣
--
iPhone/iPad/iPod and Mac software development, specialising in databases
email@hidden
--
Follow us on Twitter: http://twitter.com/barefeetware/
Like us on Facebook: http://www.facebook.com/BareFeetWare
----
> On 24 Feb 2015, at 9:06 am, Kyle Sluder <email@hidden> wrote:
>
> 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