Re: How to access files in Cocoa application.
Re: How to access files in Cocoa application.
- Subject: Re: How to access files in Cocoa application.
- From: Andrew Farmer <email@hidden>
- Date: Thu, 22 Feb 2007 04:28:51 -0800
On 22 Feb 07, at 04:11, Txinto Vaz wrote:
Maybe the most powerful way is to use the Core Data technology, it
provides
to you a method to develop applications and to automatically store
its data
in some different formats, such as XML (text readable), binary or
SQLite.
I'm not really sure why you're mentioning CoreData here, as the OP
was asking about "a normal text file". CoreData is almost certainly
going to be a proverbial elephant gun for this task (and might end up
blowing off the poor user's foot in the process).
On 22 Feb 07, at 04:11, Txinto Vaz wrote:
The other method (and simpler) does not depend on Cocoa, si simply
using the
C file manipulation routines (fopen, fclose, fprintf, etc...), or
the ones
in Objective-C.
C stdio isn't Cocoa, either; the correct answer is NSFileHandle (part
of Core Foundation).
To the original poster: documentation is available online and on your
computer. Please read it before posting - this answer wasn't very
hard to find.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden