• 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: Problem using filewrappers under snow leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using filewrappers under snow leopard


  • Subject: Re: Problem using filewrappers under snow leopard
  • From: Graham Cox <email@hidden>
  • Date: Wed, 7 Oct 2009 11:47:55 +1100


On 07/10/2009, at 11:23 AM, Eagle Offshore wrote:

where fileWrappers is an NSMutableDictionary of filename->NSData's.


But that's not what the documentation says you should pass. The dictionary should contain other NSFileWrappers keyed by their preferred filenames, not NSData. That you got away with it in the past is a fluke.


Initializes the receiver as a directory file wrapper, with a given file-wrapper list.

- (id)initDirectoryWithFileWrappers:(NSDictionary *) childrenByPreferredName

Parameters
childrenByPreferredName
Key-value dictionary of file wrappers with which to initialize the receiver. The dictionary must contain entries whose values are the file wrappers that are to become children and whose keys are filenames. See Working With Directory Wrappers in Application File Management for more information about the file-wrapper list structure.


Return Value
Initialized file wrapper for fileWrappers.




--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Problem using filewrappers under snow leopard
      • From: Eagle Offshore <email@hidden>
References: 
 >Problem using filewrappers under snow leopard (From: Eagle Offshore <email@hidden>)

  • Prev by Date: Suggest reasons for this crash?
  • Next by Date: Re: Suggest reasons for this crash?
  • Previous by thread: Problem using filewrappers under snow leopard
  • Next by thread: Re: Problem using filewrappers under snow leopard
  • Index(es):
    • Date
    • Thread