• 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: How to change the icon in the dock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change the icon in the dock


  • Subject: Re: How to change the icon in the dock
  • From: Todd deGruyl <email@hidden>
  • Date: Mon, 2 Dec 2002 08:54:58 -0500

On Monday, Dec 2, 2002, at 08:43 US/Eastern, TACKEL wrote:

Hi all,
I want to change the icon of my app temporally when a special event happen
like entourage does when a email is received and isn't the active app. Any
suggestion?


NSImage *newImage; // should be initialized
NSImage *oldImage = [NSApp applicationIconImage];

// to change the icon image to a new image:
[NSApp setApplicationIconImage:newImage];
// do stuff

// to reset the icon image back to what it was:
[NSApp setApplicationIconImage:oldImage];

--
Todd deGruyl

Magnoliophyte, Inc. web: <http://www.magnoliophyte.com>
50 Meadow St. #28 email: email@hidden
Amherst, MA 01002 phone: (413) 210 - 8999
United States
_______________________________________________
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.

References: 
 >How to change the icon in the dock (From: TACKEL <email@hidden>)

  • Prev by Date: How to change the icon in the dock
  • Next by Date: Address Book
  • Previous by thread: How to change the icon in the dock
  • Next by thread: Address Book
  • Index(es):
    • Date
    • Thread