• 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: Need help finding examples of read/writing files in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help finding examples of read/writing files in Cocoa


  • Subject: Re: Need help finding examples of read/writing files in Cocoa
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 30 Jan 2002 21:30:10 -0600

Read the docs for NSFileHandle. It does what you want.

On Wednesday, January 30, 2002, at 05:36 PM, Greg Chapel wrote:

I am trying to write a program using Project Builder in Mac OS X.

More specifically I want to directly read/write to a file format that isn't
a typical file type (ie. jpeg, txt, etc). The file I am trying to read/write
to is composed as follows; 3200 byte epcidic header, 400 byte binary header,
then multiple 240 byte trace headers in combination with trace data.

Most all of the cocoa examples supplied with PB on OS X only show how to
work with files that include the object file wrapper, encoding/decoding
followed by archiving/unarchiving. What I want to be able to do is use the
standard OpenFilePane UI to browse and select files then use my own custom
object methods to read and/or write to the selected file ultimately
encoding/decoding this data to/from my own custom object.

I have a good book on Objective-C and one on Cocoa but they are very light
in content when it comes to file access and don't go into enough detail to
be of any good. Can anyone here direct me to a place where I can get more
info on this.

Primarily I am looking for example source code that I can study and learn to
apply to my program.

Thank you,

Greg Chapel
_______________________________________________
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.


References: 
 >Need help finding examples of read/writing files in Cocoa (From: "Greg Chapel" <email@hidden>)

  • Prev by Date: NSBrowser Question
  • Next by Date: Re: window pupping upp, hmm!?
  • Previous by thread: Re: Need help finding examples of read/writing files in Cocoa
  • Next by thread: Re: Need help finding examples of read/writing files in Cocoa
  • Index(es):
    • Date
    • Thread