• 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
Re: Dictionary to an invisible file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dictionary to an invisible file


  • Subject: Re: Dictionary to an invisible file
  • From: Nicko van Someren <email@hidden>
  • Date: Wed, 16 Nov 2005 08:52:52 +0000

On 15 Nov 2005, at 23:26, Lorenzo wrote:

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];
...
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.

You could try creating an empty file, setting it to be invisible and then writing to the file with the "atomically:" flag set to NO.


Having said that, I have to question your motives. If the user is savvy they will find your hidden file. If they are not that savvy then just putting the file somewhere obscure is probably good enough. If you need real security you shouldn't try to achieve it through obscurity but should use cryptography instead.

	Nicko

_______________________________________________
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


References: 
 >Dictionary to an invisible file (From: Lorenzo <email@hidden>)

  • Prev by Date: multithread strange lockups in 10.3.9 and not tiger
  • Next by Date: Re: NSPopUpButton With Submenus
  • Previous by thread: Re: Dictionary to an invisible file
  • Next by thread: Re: Dictionary to an invisible file
  • Index(es):
    • Date
    • Thread