• 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: A Question on estimating +arrayWithCapacity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Question on estimating +arrayWithCapacity


  • Subject: Re: A Question on estimating +arrayWithCapacity
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 9 Jan 2009 20:27:54 -0500

On Fri, Jan 9, 2009 at 6:39 PM, Ken Thomases <email@hidden> wrote:
> And the reason many people don't realize they can do this is that they
> overlook the superclass methods when considering a subclass.  A lot of
> people don't even know that they can send +array to NSMutableArray!

Part of the problem that was addressed in the previous thread was that
+array is not documented to actually give you a mutable instance.
While in practice it works fine, there's no guarantee.

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

  • Follow-Ups:
    • Re: A Question on estimating +arrayWithCapacity
      • From: Graham Cox <email@hidden>
References: 
 >A Question on estimating +arrayWithCapacity (From: Steve Cronin <email@hidden>)
 >Re: A Question on estimating +arrayWithCapacity (From: Graham Cox <email@hidden>)
 >Re: A Question on estimating +arrayWithCapacity (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Bonjour server with multiple clients
  • Next by Date: Re: Bonjour server with multiple clients
  • Previous by thread: Re: A Question on estimating +arrayWithCapacity
  • Next by thread: Re: A Question on estimating +arrayWithCapacity
  • Index(es):
    • Date
    • Thread