Professional Web Applications Themes

newbie cocoa file reading/writing files - Mac Programming

I am working on an application that presents only one window. This window contains a number of controls, and an NSTextView. I would like to change the contents of the text view, based on the configuration of the controls. I would like to use only one file to get data from if possible, but could use multiple files. My questions are the following: Does Cocoa provide file access methods similar to the old FSOpen, FSRead, etc? Can a file be modified, added to, and deleted from, a bundle from within an application? Any help is appreciated . Rich...

  1. #1

    Default newbie cocoa file reading/writing files

    I am working on an application that presents only one window. This
    window contains a number of controls, and an NSTextView. I would like
    to change the contents of the text view, based on the configuration of
    the controls. I would like to use only one file to get data from if
    possible, but could use multiple files. My questions are the following:

    Does Cocoa provide file access methods similar to the old FSOpen,
    FSRead, etc?

    Can a file be modified, added to, and deleted from, a bundle from within
    an application?

    Any help is appreciated .

    Rich
    Richard Humiston Guest

  2. #2

    Default Re: newbie cocoa file reading/writing files

    In <rhumiston-37D1FB.07372921072003news.comcast.giganews.com> Richard
    Humiston wrote:
    > I am working on an application that presents only one window. This
    > window contains a number of controls, and an NSTextView. I would like
    > to change the contents of the text view, based on the configuration of
    > the controls. I would like to use only one file to get data from if
    > possible, but could use multiple files. My questions are the
    > following:
    >
    > Does Cocoa provide file access methods similar to the old FSOpen,
    > FSRead, etc?
    I don't know anything about "the old FSOpen, FSRead, etc." Cocoa
    provides lots of file access methods. For starters, see NSString, NSData,
    NSFileHandle. A good learning strategy would be to do a batch find on
    "file".
    > Can a file be modified, added to, and deleted from, a bundle from
    > within an application?
    Yes. m.

    --
    matt neuburg, phd = [email]matttidbits.com[/email], [url]http://www.tidbits.com/matt[/url]
    REALbasic: The Definitive Guide! 2nd edition!
    [url]http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt[/url]
    Subscribe to TidBITS. It's free and smart.
    matt neuburg Guest

Similar Threads

  1. Reading from / Writing to text files out of Flash
    By Carl Schubert in forum Macromedia Flash
    Replies: 1
    Last Post: December 30th, 09:10 PM
  2. reading and writing files to local drives
    By Chris in forum Macromedia Flash
    Replies: 1
    Last Post: November 20th, 12:29 PM
  3. Reading and writing files in PHP
    By Mark Hewitt in forum PHP Development
    Replies: 1
    Last Post: September 2nd, 04:39 PM
  4. Reading writing to INI files
    By Saadat Saeed in forum PERL Beginners
    Replies: 0
    Last Post: August 24th, 02:57 PM
  5. Reading and writing to a file
    By MJS in forum PERL Miscellaneous
    Replies: 3
    Last Post: August 3rd, 07:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139