Need help finding examples of read/writing files in Cocoa
Need help finding examples of read/writing files in Cocoa
- Subject: Need help finding examples of read/writing files in Cocoa
- From: "Greg Chapel" <email@hidden>
- Date: Wed, 30 Jan 2002 17:36:45 -0600
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