On Dec 10, 2014, at 10:03 AM, Bill Cheeseman <wjcheese...@gmail.com> wrote:

> One of my applications implements the -applicationDidChangeScreenParameters: 
> delegate method, in order to change the default position of its only window 
> when the user does something like changing screen resolution, adding or 
> removing a monitor, or changing relative monitor positions.
> 
> I am in the process of updating the application, and I just noticed that this 
> delegate method is now triggered every time I launch the application. I can't 
> figure out what change in my code is causing this to happen. Can somebody 
> suggest how I can go about debugging this? I already tried setting 
> breakpoints everywhere in the launch process (e.g., -awakeFromNib, 
> -applicationDidFinishLaunching:), and the trigger happens after all of them 
> have finished executing.

It may not be a change in your code.  I believe that notification is delivered 
when the Dock icons have to shrink to accommodate a new icon.  When that 
happens, the space used by the Dock overall changes, which means the 
-visibleFrame of the screen that contains the Dock changes, which necessitates 
notifying the app.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to