HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread William J. Cheeseman
My Pointer Noodge application displays an animated image surrounding the mouse pointer using a layer-hosting multi-screen view: . I am having difficulty upgrading it to handle a mix of retina and non-retina displays. All help appreciated. The specific problem is

Re: HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread William J. Cheeseman
On Jan 12, 2013, at 11:21 AM, Richard Somers wrote: > A single window which overlays multiple screens with each screen using a > possibly different backingScaleFactor. Wow! It's the only way I could find to detect when the mouse enters any particular screen, using NSTrackingArea with -[NSResp

Re: Detecting a native Cocoa app ?

2013-02-07 Thread William J. Cheeseman
On Feb 7, 2013, at 3:32 AM, dvlc...@gmail.com wrote: > I would like to automatically detect when the target application is > native cocoa, so that I may switch the plugin off otherwise. How would > you do that ? There is an Apple Q&A document that explains how to do that. It was published a co

Re: Detecting a native Cocoa app ?

2013-02-07 Thread William J. Cheeseman
On Feb 7, 2013, at 3:32 AM, dvlc...@gmail.com wrote: > I would like to automatically detect when the target application is > native cocoa, so that I may switch the plugin off otherwise. How would > you do that ? ULI's answer makes sense if you are asking which frameworks are being used. Howeve

Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
My Mac OS application has an NSDatePicker object in a popover. When the popover opens, the date picker works perfectly. However, when I detach the popover to its own window, the date picker no longer highlights the selected date picker element. The date picker still works perfectly in all othe

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 1:35 PM, Keary Suska wrote: > Your description suggests that you aren't using separate UI elements for the > window and the popover as required by the docs...? When I said "I am instantiating separate controllers and views for the anchored popover and the detached popove

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 1:35 PM, Keary Suska wrote: > Your description suggests that you aren't using separate UI elements for the > window and the popover as required by the docs...? I just discovered that Apple's Popover sample code exhibits exactly the same problem when I add a date picker t

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 2:46 PM, "William J. Cheeseman" wrote: > I just discovered that Apple's Popover sample code exhibits exactly the same > problem when I add a date picker to its popover view! The date picker looks > and works as it should when the popover is ancho

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 3:32 PM, "William J. Cheeseman" wrote: > Using Apple's Popover example with a date picker added to its popover view, I > made MyWindowController the delegate of the popover view Correction: I made MyWindowController the delegate of the deta

Re: Problem with NSDatePicker in popover

2013-02-23 Thread William J. Cheeseman
On Feb 23, 2013, at 4:04 PM, William J. Cheeseman wrote: > When a popover is still anchored to its parent window, the popover view's > window is the parent window -- which makes sense, when you think about it, > because a popover is just another view in the main window. When the

Re: Problem with NSDatePicker in popover

2013-02-24 Thread William J. Cheeseman
On Feb 23, 2013, at 10:01 PM, Graham Cox wrote: >> When a popover is still anchored to its parent window, the popover view's >> window is the parent window -- which makes sense, when you think about it, >> because a popover is just another view in the main window. > > Are you sure about that?

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 6:33 AM, Graham Cox wrote: > If you've done all that and it's still not working as expected, maybe there's > a subtle bug in the code that animates between the popover and the new > window. This being newish code, it's possible. I've done all that, and I believe it is a bu

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:04 AM, William J. Cheeseman wrote: > Here's the workaround I came up with, tested in Apple's Popover example but > not yet tested in my own application. It works in my own application, too. All is well with the world once again. Thanks for the

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:04 AM, William J. Cheeseman wrote: > Here's the workaround I came up with, tested in Apple's Popover example but > not yet tested in my own application. It works in my own application, too. All is well with the world once again. Thanks for the

Re: Problem with NSDatePicker in popover (workaround)

2013-02-24 Thread William J. Cheeseman
On Feb 24, 2013, at 8:25 AM, William J. Cheeseman wrote: > On Feb 24, 2013, at 8:04 AM, William J. Cheeseman > wrote: > >> Here's the workaround I came up with, tested in Apple's Popover example but >> not yet tested in my own application. > > >