FROM : Martin
DATE : Tue Feb 26 20:56:35 2008
Le 26 févr. 08 à 14:31, Philip Bridson a écrit :
> Yeah that is what I mean. I was reading in the Documentation though
> that paths to file system folders should not be hard coded.
Yes.. I guess good programmers should use methods described in:
http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html
> This may sound a little dumb but is the freopen a C function? I used
> to write in C++ before Obj-C so I haven't used it before. Is it best
> to use this method or to use File Manager?
Yes, freopen is a libc function. You can find the documentation about
it in XCode or by typing "man freopen" in a terminal.
I'm not sure which Obj-C method you would like to call instead, but it
would probably be some kind of wrapper around the freopen function
anyways.
Martin._______________________________________________
Cocoa-dev mailing list (<email_removed>)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
This email sent to <email_removed>
DATE : Tue Feb 26 20:56:35 2008
Le 26 févr. 08 à 14:31, Philip Bridson a écrit :
> Yeah that is what I mean. I was reading in the Documentation though
> that paths to file system folders should not be hard coded.
Yes.. I guess good programmers should use methods described in:
http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html
> This may sound a little dumb but is the freopen a C function? I used
> to write in C++ before Obj-C so I haven't used it before. Is it best
> to use this method or to use File Manager?
Yes, freopen is a libc function. You can find the documentation about
it in XCode or by typing "man freopen" in a terminal.
I'm not sure which Obj-C method you would like to call instead, but it
would probably be some kind of wrapper around the freopen function
anyways.
Martin._______________________________________________
Cocoa-dev mailing list (<email_removed>)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Philip Bridson | Feb 26, 11:53 | |
| Martin | Feb 26, 13:58 | |
| Philip Bridson | Feb 26, 14:31 | |
| Martin | Feb 26, 20:56 | |
| Tommy Nordgren | Feb 27, 02:40 | |
| Barry Wark | Feb 27, 22:43 |






Cocoa mail archive

