• 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: BOOL array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BOOL array


  • Subject: Re: BOOL array
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 9 Sep 2008 18:01:55 +0200

Le 9 sept. 08 à 12:24, Alex Reynolds a écrit :

I am currently putting 320 to 480 character long NSString * instances into an NSMutableArray. The characters are 0 or 1.

I guess I could use an int array, but I'm looking to speed up my app and reduce storage. Is it possible to create a BOOL array that can be put into an NSMutableArray?


I you don't need to much control over you data, you may use a CFBitVector (and mutable counterpart).
As it is a CFTypeRef, it is free-bridged with NSObject and can be stored in an NSArray.



_______________________________________________

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: 
 >BOOL array (From: Alex Reynolds <email@hidden>)

  • Prev by Date: Re: Custom Array/Set keypath
  • Next by Date: Re: BOOL array
  • Previous by thread: Re: BOOL array
  • Next by thread: Re: BOOL array
  • Index(es):
    • Date
    • Thread