• 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
Anyway to make a generic out of instancetype?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anyway to make a generic out of instancetype?


  • Subject: Anyway to make a generic out of instancetype?
  • From: Rick Mann <email@hidden>
  • Date: Fri, 04 Sep 2015 16:47:50 -0700

I have some class methods that return NSArray*. I wanted to have them return NSArray<instancetype*>*, but the compiler doesn't seem to like that. Is it worth trying to do?

Thanks,

--
Rick Mann
email@hidden



_______________________________________________

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: Anyway to make a generic out of instancetype?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Swift generics, circular type declarations, and segfaults, oh my!
  • Next by Date: "Computed segue" in iOS?
  • Previous by thread: Re: String.join()?
  • Next by thread: Re: Anyway to make a generic out of instancetype?
  • Index(es):
    • Date
    • Thread