Re: What triggers -applicationDidChangeScreenParameters: delegate method?
Re: What triggers -applicationDidChangeScreenParameters: delegate method?
- Subject: Re: What triggers -applicationDidChangeScreenParameters: delegate method?
- From: Ken Thomases <email@hidden>
- Date: Wed, 10 Dec 2014 10:23:52 -0600
On Dec 10, 2014, at 10:03 AM, Bill Cheeseman <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden