Re: Wrong result with createDirectoryAtPath:attributes:
Re: Wrong result with createDirectoryAtPath:attributes:
- Subject: Re: Wrong result with createDirectoryAtPath:attributes:
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 15 Dec 2003 08:59:59 +0100
On dimanche, dicembre 14, 2003, at 11:00 PM, Sherm Pendley wrote:
On Dec 14, 2003, at 3:38 PM, Stiphane Sudre wrote:
with a valid path and the following attributes (it's an output of the
NSDictionary):
<dict>
<key>NSFileGroupOwnerAccountID</key>
<integer>20</integer>
<key>NSFileOwnerAccountID</key>
<integer>501</integer>
<key>NSFilePosixPermissions</key>
<integer>509</integer>
</dict>
In NSFileManager.h, these constants are only available for 10.2.
You've indicated that the tool is *running* on 10.2, but you might
want to verifiy that it's not being compiled with 10.1 compatibility
enabled.
If you need the tool to be compatible with earlier versions, you might
try using NSFileOwnerAccountName & NSFileGroupOwnerAccountName instead
of the numeric variants.
Indeed. But AFAIK, it's compiled without any compatibility enabled
since I'm compiling on 10.2 with Project Builder.
Anyway looking at the headers clarifies the fact that the 10.2
NSFileManager documentation is buggy as it's stating some methods are
part of NSFileManager whereas they are part of NSDictionary (as a
category). It's fixed on the Apple Web site and so in 10.3 I think.
_______________________________________________
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.