**
-(NSDictionary *)fileAttributesToWriteToURL:(NSURL *)absoluteURL:
ofType:(NSString *)typeName:
forSaveOperation:(NSSaveOperationType)saveOperation:
originalContentsURL:(NSURL *)absoluteOriginalContentsURL:
error:(NSError **)outError:
解説
調査中...
HFSタイプ、クリエーターコードをつけて保存する時に使用する
返り値
( NSDictionary * )
なし
引数
( NSURL * )absoluteURL
( NSString * )typeName
( NSSaveOperationType )saveOperation
( NSURL * )absoluteOriginalContentsURL
( NSError ** )outError
フレームワーク
ApplicationKit
クラス
NSDocument
Instance Methods
使用可能
10.4
参照
例文
const OSType kMyAppCreatorCode = 'Zzzz'; - (NSDictionary *)fileAttributesToWriteToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation originalContentsURL:(NSURL *)absoluteOriginalContentsURL error:(NSError **)outError { NSMutableDictionary *fileAttributes = [[super fileAttributesToWriteToURL:absoluteURL ofType:typeName forSaveOperation:saveOperation originalContentsURL:absoluteOriginalContentsURL error:outError] mutableCopy]; [fileAttributes setObject:[NSNumber numberWithUnsignedInt:kMyAppCreatorCode] forKey:NSFileHFSCreatorCode]; [fileAttributes setObject:[NSNumber numberWithUnsignedInt:kMyDocumentTypeCode] forKey:NSFileHFSTypeCode]; return [fileAttributes autorelease]; }