• 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: Tue, 24 Feb 2015 08:22:15 +1100

Thank you all for your replies and for the clarification on my question. I have tweaked the subject of this email to hopefully avoid future confusion.

That is disappointing that we can't seem to get the class of the returned object. It seems like a major omission.

I wonder, then, how the _shortMethodDescription private method works and whether it uses some helpful public methods:

@interface NSObject (Private)
- (NSString *) _shortMethodDescription;
@end

NSString *fullMethodList = [[self class] _shortMethodDescription];

which gives the full header breakdown of methods with parameters and return classes.

Thanks,
Tom 👣

> On 23 Feb 2015, at 5:31 pm, Kyle Sluder <email@hidden> wrote:
>
> For those who have only read the subject line: this thread isn't about finding out what class an IMP belongs to. It's about finding out what class of object a method is declared to return. And that information simply is not available.

_______________________________________________

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

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