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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to