• 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
newbie q's - Storing arrays of non-objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie q's - Storing arrays of non-objects


  • Subject: newbie q's - Storing arrays of non-objects
  • From: Oliver Donald <email@hidden>
  • Date: Wed, 29 Jan 2003 10:30:02 -0000

Hi,

Im writing some software where I need to store an array of 'symbols', where
each symbol is an array of 3-8 Long's. As far as I can tell I cant have an
NSArray of long[]'s because they aren't objects and dont have
reference-counts etc etc. So at the moment I am storing each symbol in an
NSData object, but this feels a bit heavy handed, especially when it comes
to reading out 4 bytes at a time to get a long.
Is there a better way to do this? What is the best way to store arrays of
non-objects? (ps is non-object = atomic ?)

Thanks
oli


DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately.

The contents of this email must not be disclosed or copied without the
sender's consent. We cannot accept any responsibility for viruses, so please
scan all attachments.

The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the company. The company does
not take any responsibility for the views of the author.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: changing the style mask of an NSWindow
  • Next by Date: RE: newbie q's - Storing arrays of non-objects
  • Previous by thread: Re: changing the style mask of an NSWindow
  • Next by thread: RE: newbie q's - Storing arrays of non-objects
  • Index(es):
    • Date
    • Thread