Document package
Document package
- Subject: Document package
- From: Nor <email@hidden>
- Date: Sun, 7 Dec 2008 00:08:51 +0900
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 (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