Dictionary to an invisible file
Dictionary to an invisible file
- Subject: Dictionary to an invisible file
- From: Lorenzo <email@hidden>
- Date: Wed, 16 Nov 2005 00:26:18 +0100
I would like to save a NSDictionary to an invisible file.
Actually I firstly save the file, then I make the file invisible using the
old Carbon flag kLSItemInfoIsInvisible.
[pListDict writeToFile:theFile atomically:YES];
[self SetInvisible:theFile];
[sharedWorkspace noteFileSystemChanged:theFile];
parentFolder = [theFile stringByDeletingLastPathComponent];
[sharedWorkspace noteFileSystemChanged:parentFolder];
The problem is that for some second I can see that file, and in some case I
have to close its parent folder in the Finder to don't see the file anymore.
So I ask: how to save the dictionary to a never visible file?
Should I create an invisible empty file with the old Carbon routines then
append the dictionary-converted-to-data to that file?
Any sample code, suggestion, doc, would be appreciated.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden