• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dock Icon Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dock Icon Help
      • From: j o a r <email@hidden>
    • Re: Dock Icon Help
      • From: j o a r <email@hidden>
References: 
 >Dock Icon Help (From: Chad Eckles <email@hidden>)

  • Prev by Date: Re: weird problem ...
  • Next by Date: Re: getting file type info from NSOpenPanel's selected file
  • Previous by thread: Dock Icon Help
  • Next by thread: Re: Dock Icon Help
  • Index(es):
    • Date
    • Thread