• 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: Joel Norvell <email@hidden>
  • Date: Wed, 10 Sep 2008 09:18:33 -0700 (PDT)

OK.  I think I've got it.  One could use an increasing sequence of integers, letting evenness and oddness determine the boolean state at any index.  That would save a huge amount of "overhead" in this case!

--- On Wed, 9/10/08, Todd Blanchard wrote:

> Well, if I read it right, he's using the NSString as a very expensive
> bit vector - only storing 0's and 1's.
>
> If instead of storing a '1' at position n he sticks n into the
> NSMutableIndexSet, it amounts to the same thing.
> He can keep an array of NSMutableIndexSets instead of an
> array of NSStrings.
>
> On Sep 9, 2008, at 11:51 PM, Joel Norvell wrote:
>
> >
> > The values in an NSMutableIndexSet are always sorted, so the order
> > in which they are added is not preserved. Wouldn't that defeat the
> > purpose of the OP's data structure?
> >





_______________________________________________

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: BOOL array
      • From: "Shawn Erickson" <email@hidden>
    • Re: BOOL array
      • From: "Igor Mozolevsky" <email@hidden>
References: 
 >Re: BOOL array (From: Todd Blanchard <email@hidden>)

  • Prev by Date: Re: [moderator] Re: While we're on the subject of DMG's for software distribution...
  • Next by Date: Re: BOOL array
  • Previous by thread: Re: BOOL array
  • Next by thread: Re: BOOL array
  • Index(es):
    • Date
    • Thread