• 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
Updating the Dock Trash icon when trashing a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating the Dock Trash icon when trashing a file


  • Subject: Updating the Dock Trash icon when trashing a file
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 29 Nov 2004 21:22:35 +0000

In my application, the user can move files to the trash with a Command-Backspace keystroke. Although the selected files are getting moved to the trash properly, the Dock trash icon doesn't update itself to its "items-in-trash" look. It updates itself once you click on it, but should do it automatically. I've tried sending an -[NSWorkspace noteFileSystemChanged] (both types, with and without the relevant path), but it doesn't do anything. What am I missing?

(By the way, I'm using NSFileManager, not NSWorkspace, to move the files.)

Regards,
Jeremy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Updating the Dock Trash icon when trashing a file
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: LSUIElement does not work as documented?
  • Next by Date: Strange behavior from custom NSFormatter object
  • Previous by thread: Multi-Document Windows
  • Next by thread: Re: Updating the Dock Trash icon when trashing a file
  • Index(es):
    • Date
    • Thread