• 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
Restoring Dock Icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restoring Dock Icon


  • Subject: Restoring Dock Icon
  • From: Joe Muscara <email@hidden>
  • Date: Tue, 6 Nov 2001 11:15:31 -0600

I'm sure this is an RTFM or some other oversight on my part, so feel free to just point me in the right direction. :~)

My app modifies its Dock icon while it's running. I'd like it to restore the icon when it is quit, but I haven't been able to get it to work.

In my init, I set the NSImage instance variable iconImage.

iconImage = [NSApp applicationIconImage]

In applicationShouldTerminate I attempt to reset the icon, but nothing happens.

[NSApp setApplicationIconImage:iconImage]

Any thoughts on what I've missed?

Thanks,
Joe


  • Prev by Date: Re: NSUsersDefault and users
  • Next by Date: Re: NSUsersDefault and users
  • Previous by thread: Re: Services in 10.1
  • Next by thread: Re: Restoring Dock Icon
  • Index(es):
    • Date
    • Thread