DOcument Icons
DOcument Icons
- Subject: DOcument Icons
- From: "Simson Garfinkel" <email@hidden>
- Date: Sat, 24 Nov 2001 01:19:12 -0500
One more NSDocument question before I go to bed (it's 1:14am...)
I've created a document icon and set it up in Project Builder. The icon is
appearing in the Title Bar of my windows. But it is not appearing in the
documents when I save my file. Is there some magic that I need to do? I'm
using the default NSDocument methods for everything, the only thing that I'm
doing is using - (NSData *)dataRepresentationOfType:(NSString *)aType to
provide an NSData for my document, then letting the NSDocument class take
care of everything else.
I know that I can use - (NSDictionary
*)fileAttributesToWriteToFile:(NSString *)fullDocumentPath ofType:(NSString
*)documentTypeName saveOperation:(NSSaveOperationType)saveOperationType and
manually set up an NSDictionary, but that seems really gross.