Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEventAppAvailableWindowBoundsChanged - Minor oversight?




On 12 Jun 2006, at 15:31, Eric Schlegel wrote:

You could file a bug and we could try to get the Dock to notify us in that case.

Actually, even if this was 'fixed' it still wouldn't help me figure out where the Dock is until something causes a kEventAppAvailableWindowBoundsChanged.


Would probably be more useful to file an enhancement request for an API to determine what screen (and what edge) the Dock is on and call this as necessary. (ie at App start and each kEventAppAvailableWindowBoundsChanged). For now I rolled my own version using the Dock's prefs and replicating its own logic for deciding what screen to put it on.

For anyone else trying to figure this out, the logic goes something like this:

(Using a right-sided Dock as an example)

1. Start with dockScreen set to the Menu bar screen.
2. Find the screen with the max right edge whose left edge actually touches the right edge of dockScreen
3. if there isn't one then break else set dockScreen to that screen and goto 2;



Matt _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden


This email sent to email@hidden
References: 
 >kEventAppAvailableWindowBoundsChanged - Minor oversight? (From: Matt Gough <email@hidden>)
 >Re: kEventAppAvailableWindowBoundsChanged - Minor oversight? (From: Eric Schlegel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.