|
|
I/O in cocoa?
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
I'm trying to access a tab delimited text in cocoa.
Made the program in C++, works fine, but I'd like to put it in my Cocoa App since I need to call this functions and encode objects in the right format (it's an import function).
Where can I find the open, get, getline, read, write commands in cocoa?
Any ideas ?
Thanks !!
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Wouldn't it be easiest just to use Obj-C++ and keep the functions you've already got?
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Dec 2001
Location: Bolton, UK
Status:
Offline
|
|
You can either use cocoa's own functions (see the developer help) or just include stdio.h and use the standard C functions within your methods. Works fine.
Barney.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
Originally posted by barney ntd:
<STRONG>You can either use cocoa's own functions (see the developer help) or just include stdio.h and use the standard C functions within your methods. Works fine.
Barney.</STRONG>
Thx!
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
Then how do you do a simple modal dialog to ask for a file ?
Damn the Apple documentation is bad !
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
Originally posted by barney ntd:
<STRONG>You can either use cocoa's own functions (see the developer help) or just include stdio.h and use the standard C functions within your methods. Works fine.
Barney.</STRONG>
Including stdio.h and adding a .mm to my files doesn't work...
Strange...
I can't find the IO functions in cocoa... can anyone help ?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2001
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|