![]() NSKeyedUnarchiver *decoder = initForReadingWithData: data] NSString *dataFile = stringByExpandingTildeInPath] NSKeyedArchiver *coder = initForWritingWithMutableData: mutableData] autorelease] NSMutableData *mutableData = init] autorelease] ![]() NSURL *url = initWithContentsOfURL: url] autorelease] ![]() (void)applicationDidFinishLaunching:(NSNotification *)aNotification Create a new Cocoa App project and add this to the delegate method. I've prepared a dirty small example that you can copy/paste and try out. However, the image will not be drawn when I load it from an archive file. ![]() When I first load the eps file from a file and draw it with drawInRect: the image is displayed correctly. I'm struggling with the problem to draw an eps file on a NSView.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |