Hi, I'm trying to make document package using NSFileWrapper. I could contain a regular file in the directory (document package), but the directory can't change its appearance, this is, it still looks a folder, not the icon I have specified in my info.plist. I have also set LSTypeIsPackage of the document type to TRUE.
I did like the following: - (NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error:(NSError **)outError { NSFileWrapper * result = [[NSFileWrapper alloc] initDirectoryWithFileWrappers:nil]; NSData* data = [self dataOfType:typeName error:outError]; [result addRegularFileWithContents:data preferredFilename:@"myData"]; return result; } Would you tell me what I'm missing? Any suggestions would be appreciated. Thanks, Norio _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]