> On Sep 4, 2015, at 18:29 , Jens Alfke <j...@mooseyard.com> wrote:
> 
> 
>> On Sep 4, 2015, at 4:47 PM, Rick Mann <rm...@latencyzero.com> wrote:
>> 
>> 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?
> 
> Well, it should be <instancetype> instead (the ‘*’ is already included in the 
> type), but in my experience ‘instancetype’ only works as the return type of a 
> method.

Yeah, sorry, mis-typed it. I tried it without (and with) the asterisk. It 
doesn't recognize it (despite being part of the return type.

-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to