• 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: 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


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

  • Prev by Date: Handle js cookies in WebView
  • Next by Date: window:willPositionSheet:usingRect: not called in full-screen mode
  • Previous by thread: Re: get class of a method's returned object
  • Next by thread: Re: get class of a method
  • Index(es):
    • Date
    • Thread