• 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
NSData and storage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData and storage


  • Subject: NSData and storage
  • From: Theodore Petrosky <email@hidden>
  • Date: Mon, 16 Feb 2004 11:55:01 -0800 (PST)

I am creating an app that talks to a postgresql
database. i have a few tables in my interface and I
have been trying to decide how to store the data in
the database. I have also been toying with just
passing the array and storing that. It would be easier
to handle. I set up the class to conform to NSCoder
and it appears that I can create a proper NSData
object form the array.

So how to store the data in the database? I notice
that the description is a representation of the data
in hex... I have been thinking of just storing this
hex in the database. But how can I recreate the array
from the hex?

Am I barking up the wrong tree? should I not use the
hex and store the binary? If I do, I have to escape it
and I don't want to do that.

So I guess the question is, "How can I convert the hex
representation of the NSData object back to an NSData
object"?

Any ideas would be welcome..

Ted

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
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: General Question: Debugging these "NS" Objects: Answered
  • Next by Date: problem with buttons and images
  • Previous by thread: Re: performKeyEquivalent & key events
  • Next by thread: problem with buttons and images
  • Index(es):
    • Date
    • Thread