• 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: array = [NSArray new] or array = [NSArray array]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array = [NSArray new] or array = [NSArray array]?


  • Subject: Re: array = [NSArray new] or array = [NSArray array]?
  • From: Carl Hoefs <email@hidden>
  • Date: Fri, 19 Aug 2016 15:09:45 -0700

> On Aug 19, 2016, at 1:46 PM, Quincey Morris <email@hidden> wrote:
>
> My point is that Apple might revisit the implementation of NSArray at any time (in these Swiftian days, stranger things have happened), and choose to write it with full ARC compatibility, which means there might not be any autorelease when invoked from ARC client code, since ARC can optimize the code when it handles both ends of the invocation.

This is true for other classes as well, such as [NSSet set], [NSDictionary dictionary], etc.  Interesting that doing something like [NSNumber new] returns nil.
-Carl



_______________________________________________

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: 
 >array = [NSArray new] or array = [NSArray array]? (From: Alex Zavatone <email@hidden>)
 >Re: array = [NSArray new] or array = [NSArray array]? (From: Quincey Morris <email@hidden>)
 >Re: array = [NSArray new] or array = [NSArray array]? (From: email@hidden)
 >Re: array = [NSArray new] or array = [NSArray array]? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: array = [NSArray new] or array = [NSArray array]?
  • Next by Date: Re: array = [NSArray new] or array = [NSArray array]?
  • Previous by thread: Re: array = [NSArray new] or array = [NSArray array]?
  • Next by thread: Re: array = [NSArray new] or array = [NSArray array]?
  • Index(es):
    • Date
    • Thread