Closed
Bug 404943
Opened 17 years ago
Closed 16 years ago
[10.5] Bounce the download folder in the Dock when downloads finish
Categories
(Camino Graveyard :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mihaip123, Assigned: ishermandom+bugs)
Details
(Whiteboard: [good first bug])
Attachments
(1 file, 1 obsolete file)
|
1.96 KB,
patch
|
ishermandom+bugs
:
review+
ishermandom+bugs
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.9) Gecko/20071025 Camino/1.5.3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.9) Gecko/20071025 Camino/1.5.3
Please add the following enhancement to Camino, that models the behavior in Apple applications (Safari, Mail):
when a download finishes bounce the downloads stack icon in the dock once.
Reproducible: Always
Steps to Reproduce:
1.Download something in the browser
2.I usually set the downloads window to automatically close
Actual Results:
The Downloads stack in the dock does not indicate that download has finished.
Expected Results:
If Camino download folder is set to X and folder X is in the dock, bounce the X icon once.
Usually X is Downloads folder in user home dir.
I'm not sure if this is Leopard specific, but I guess it can be implemented in Tiger also.
Comment 1•17 years ago
|
||
Not for 10.4 since other Apple apps don't do it there either.
Summary: Add bounce the downloads stack in dock when download finished → [10.5] Add bounce the downloads stack in dock when download finished
Comment 2•17 years ago
|
||
Is there an API/notification for doing this?
Comment 4•16 years ago
|
||
Heh. Someone went to the trouble of writing all this up recently:
http://web.me.com/oddysseey/A_Hard_Days_Programming/A_Hard_Days_Programming/Entries/2008/11/2_Make_those_folders_bounce.html
In case that disappears before someone implements this, we need to send the "com.apple.DownloadFileFinished" notification via the NSDistributedNotificationCenter and pass the path to the downloaded file as the object of the notification.
Is there any reason *not* to do this?
Hardware: Macintosh → All
Summary: [10.5] Add bounce the downloads stack in dock when download finished → [10.5] Bounce the download folder in the Dock when downloads finish
Whiteboard: [good first bug]
Updated•16 years ago
|
Assignee: nobody → ishermandom+bugs
| Assignee | ||
Comment 6•16 years ago
|
||
Attachment #352170 -
Flags: review?
| Assignee | ||
Updated•16 years ago
|
Attachment #352170 -
Flags: review? → review?(cl-bugs-new)
Updated•16 years ago
|
Attachment #352170 -
Flags: superreview?(stuart.morgan+bugzilla)
Attachment #352170 -
Flags: review?(cl-bugs-new)
Attachment #352170 -
Flags: review+
Comment 7•16 years ago
|
||
Comment on attachment 352170 [details] [diff] [review]
Patch
Patch applies, builds, and works great. Yay for p-safari!
Two nits:
>+// Notification name to make the Downloads dock icon bounce.
This isn't a complete sentence, so it doesn't need caps and a period. Alternatively, make it a complete sentence and keep the caps and period.
>+static NSString* const DockDownloadFinishedNotificationName = @"com.apple.DownloadFileFinished";
I'm not crazy about the constant's name, but I can't think of anything much better at the moment. (Maybe just drop the "Dock" prefix?)
r=me with the first nit addressed, and maybe Stuart has some suggestions on the constant name.
Comment 8•16 years ago
|
||
On second thought, how about losing the comment on the const declaration and moving it to the part where you actually send the notification (and make it explain why you're sending that, since it's not at *all* obvious from the code what result that would have).
cl
Comment 9•16 years ago
|
||
Comment on attachment 352170 [details] [diff] [review]
Patch
>+static NSString* const DockDownloadFinishedNotificationName = @"com.apple.DownloadFileFinished";
How about DownloadFinishedOSNotificationName?
>+
Remove whitespace
>+ if (!mUserCancelled && !mDownloadFailed) {
>+ [[NSDistributedNotificationCenter defaultCenter]
>+ postNotificationName:DockDownloadFinishedNotificationName object:mDestPath];
>+ }
Definitely put a comment like "Bounce the folder in the Dock" before this block.
sr=smorgan with those changes.
Attachment #352170 -
Flags: superreview?(stuart.morgan+bugzilla) → superreview+
| Assignee | ||
Comment 10•16 years ago
|
||
Attachment #352170 -
Attachment is obsolete: true
Attachment #352730 -
Flags: superreview+
Attachment #352730 -
Flags: review+
Landed on cvs trunk.
Thanks for the work, and congrats on your first patch to land!
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•