• 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: How best to archive in CSV format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How best to archive in CSV format


  • Subject: Re: How best to archive in CSV format
  • From: j o a r <email@hidden>
  • Date: Tue, 17 May 2005 08:00:52 +0200


On 17 maj 2005, at 04.08, Denis Stanton wrote:

That's not the part that worries me. My question whether I should be writing this CSV conversion stuff inside the standard methods encodeWithCoder and initWithCoder, and if so how. It seems the Cocoa architecture has a well-thoughtout mechanism for archiving and I should try and work within it. My problem is the example I have produces a binary coded disk file and I need csv text. I want to make the Cocoa archive mechanism work with csv.

Why not do it in the dataRepresentationOfType: and loadDataRepresentation:ofType: methods of your document subclass? NSKeyedArchiver provides a way to store / restore an object graph, and it provides it's own storage format. Since neither of that seems to be something that's really useful for you, I'd suggest that you avoid using it for this particular purpose.


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How best to archive in CSV format
      • From: Denis Stanton <email@hidden>
References: 
 >How best to archive in CSV format (From: Denis Stanton <email@hidden>)
 >Re: How best to archive in CSV format (From: Brian Smith <email@hidden>)
 >Re: How best to archive in CSV format (From: Bob Ippolito <email@hidden>)
 >Re: How best to archive in CSV format (From: Denis Stanton <email@hidden>)

  • Prev by Date: Re: Application Design Question
  • Next by Date: Re: NSPopupButton in NSTableView column header [updated]
  • Previous by thread: Re: How best to archive in CSV format
  • Next by thread: Re: How best to archive in CSV format
  • Index(es):
    • Date
    • Thread