Re: Dock Icon Help
Re: Dock Icon Help
- Subject: Re: Dock Icon Help
- From: Andreas Schempp <email@hidden>
- Date: Fri, 9 May 2003 09:42:45 +0200 (MEST)
Try to retain your image, before you use it.
Or do something like this:
NSImage* coolImage = [[NSImage alloc] init];
[coolImage initWithContentsOfFile:[[NSBundle mainBundle]
pathForResource:@"2d Marine Division" ofType:@"icns"]]
Another question: is you image a real .icns file? not a tiff or something
thelike?...
>
Hello im trying to set my dock icon(http://themoonbase.com/download) threw
>
code with this
>
>
NSImage *coolImage;
>
coolImage = [NSImage imageNamed:@"2d Marine Division"];
>
[NSApp setApplicationIconImage:coolImage];
>
>
But I get an error when I do:
>
2003-05-08 12:22:11.393 LemoSoft_CodeBook[902] An uncaught exception was
>
raised
>
2003-05-08 12:22:11.436 LemoSoft_CodeBook[902] Can't cache image
>
2003-05-08 12:22:11.453 LemoSoft_CodeBook[902] *** Uncaught exception:
>
<NSImageCacheException> Can't cache image
>
>
LemoSoft_CodeBook has exited due to signal 5 (SIGTRAP).
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.