Re: Unix -> Cocoa question
Re: Unix -> Cocoa question
- Subject: Re: Unix -> Cocoa question
- From: Henry McGilton <email@hidden>
- Date: Tue, 6 May 2003 15:18:31 -0700
On Tuesday, May 6, 2003, at 03:06 PM, Alec Carlson wrote:
Not sure where to post this but if not in this list then just let me
know
where...
I inherited some unix code which I'm porting to OS X. That code makes
some
unix file system calls - specifically fstat() and stat(). These calls
work
correctly in all cases except where the target file is an OS X
application
bundle. In that case, both stat calls fail with a ENOENT - "No such
file or
directory" error. Since application bundles are special types of
directories,
They are just straightforward Good Old UNIX directories --- nothing
special about them at all.
I'm assuming there is a problem with these unix functions and
these OS X specific file types. References to normal unix directories
work
fine. I could add Carbon routines or wrap some Cocoa objects
(NSFilemanager)
- but I'd rather not. Is there another alternative ?
Are you appending the string .app to the bundle name?
Best Wishes,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.