Does anyone know why the assignment of NSFileOwnerAccountName and NSFileGroupOwnerAccountName does not work? The directory created defaults to my account and the staff group.
NSFileManager *fileManager = [NSFileManager defaultManager]; NSMutableDictionary *attr = [NSMutableDictionary dictionary]; [attr setObject:@"root" forKey:NSFileOwnerAccountName]; [attr setObject:@"wheel" forKey:NSFileGroupOwnerAccountName]; [attr setObject:[NSNumber numberWithInt:0755] forKey:NSFilePosixPermissions]; [fileManager createDirectoryAtPath:dir withIntermediateDirectories:TRUE attributes:attr error:&error]; _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com