Finder notification bug
Finder notification bug
- Subject: Finder notification bug
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 12 Mar 2004 11:26:41 -0500
The Finder issues the "AXWindowCreated" notification when you click the
toolbar button or choose View > Show/Hide Toolbar.
It shouldn't do this, should it? It may actually be creating a new window
under the hood, but that's not the way a user thinks of it. I would consider
this a bug in the Finder's implementation of the Accessibility API.
This exposes a second bug in the Finder:
Issuing the window created notification when the toolbar is shown/hidden
creates a problem when trying to control the size of a newly-created window
without changing it position, with AppleScript, because the new window's
position (upper left corner) changes when the toolbar is hidden and shown.
When hiding the toolbar, the new x-position is placed where the old
x-position of the icon view area was located. Horizontally, therefore, it's
as if the outline pane on the left simply disappeared, without moving the
icon content area. However, the new y-position is not similarly adjusted for
the disappearance of the toolbar. As a result, the icons' horizontal
position on the screen doesn't change but their vertical position does
change.
If the intent was to keep all the icons right where they were, I have two
comments:
1. The visual effect wasn't implemented correctly because the y-position
isn't adjusted, causing the icons to jump vertically.
2. The whole idea of keeping the icons in the same position is too cute by
half, anyway. I would rather have the window's origin stay where it was.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.