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 other respects: I can use the tab key to select different date 
picker elements (since they aren't highlighted, I have to count the number of 
tab presses in my head to know which element is selected). I can use the 
up-down arrows or even type a new value for the year, month or day to change 
the value. I can tab on out to the next key view. I can even tab around the 
entire key view loop and back to the date picker, and then set its values 
again. The associated instance variable's value is properly udpated every time. 
But the selected date picker element is not highlighted.

Actually, when I first detach the popover, I very briefly see the first date 
element highlighted, but it immediately unhighlights. My 
-detachableWindowForPopover: delegate method seems to work correctly, but it 
looks as if something happens after that to make the highlighting in the date 
picker go away. NSLog calls confirm that the date picker is enabled and its 
date picker cell is selected. I have made the date picker the detached window's 
first responder and the key view loop is set up correctly. I am instantiating 
separate controllers and views for the anchored popover and the detached 
popover as per the documentation.

Has anybody seen this behavior? Is this enough of a description for anybody to 
suggest where I should look next for the problem?

-- 

Bill Cheeseman - b...@cheeseman.name

_______________________________________________

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