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. > > > It works in my own application, too. All is

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 help. -- Bill Cheesema

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 help. -- Bill Cheesema

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

2013-02-24 Thread Graham Cox
On 24/02/2013, at 10:16 PM, Bill Cheeseman wrote: > I assume that the change in window is the source of the problem with the date > picker's highlighting behavior after the popover is detached. But I don't > understand exactly what's happening, or what I can do about it. > Well, I haven't t

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

2013-02-23 Thread Graham Cox
On 24/02/2013, at 8:04 AM, 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. Are you sure about that?

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 popover > is

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 detachedWindow object in MyMenu.xib

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 anchored to its parent window, b

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 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

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