• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unix -> Cocoa question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unix -> Cocoa question


  • Subject: Unix -> Cocoa question
  • From: Alec Carlson <email@hidden>
  • Date: Tue, 06 May 2003 17:06:16 -0500

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, 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 ?

Thanks -

Alec Carlson
-----------------------------------------------------------------------
Time is Short and the Water Rises
-----------------------------------------------------------------------
_______________________________________________
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.

  • Follow-Ups:
    • Re: Unix -> Cocoa question
      • From: Henry McGilton <email@hidden>
  • Prev by Date: Finished My project - What I learned
  • Next by Date: Re: clicking in NSMatrix.
  • Previous by thread: Re: Memory Management Mismanaged
  • Next by thread: Re: Unix -> Cocoa question
  • Index(es):
    • Date
    • Thread