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

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

  • Follow-Ups:
    • Re: Dictionary to an invisible file
      • From: "Sean McBride" <email@hidden>
    • Re: Dictionary to an invisible file
      • From: Nicko van Someren <email@hidden>
    • Re: Dictionary to an invisible file
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Reference to entity name in NSPredicate?
  • Next by Date: NSArrayController: add an object without selecting?
  • Previous by thread: Re: Reference to entity name in NSPredicate?
  • Next by thread: Re: Dictionary to an invisible file
  • Index(es):
    • Date
    • Thread