Strategies for reusing NSPopover

2011-08-13 Thread Martin Hewitson
Dear list, I'm trying to find the best way to use NSPopover in a reusable way. Suppose I have two date picker controls. Beside each I place a button. The button shows a popover hosting a view controller whose view contains a graphical date picker. When I get the delegate message back that the

Re: Strategies for reusing NSPopover

2011-08-13 Thread Andre Masse
On 13/08/2011, at 08:54 , Martin Hewitson wrote: Suppose I have two date picker controls. Beside each I place a button. The button shows a popover hosting a view controller whose view contains a graphical date picker. When I get the delegate message back that the popover closed, how can I

Re: Strategies for reusing NSPopover

2011-08-13 Thread Martin Hewitson
On 13, Aug, 2011, at 05:30 PM, Andre Masse wrote: On 13/08/2011, at 08:54 , Martin Hewitson wrote: Suppose I have two date picker controls. Beside each I place a button. The button shows a popover hosting a view controller whose view contains a graphical date picker. When I get the

Re: Strategies for reusing NSPopover

2011-08-13 Thread Jodischlange
Am 13.08.2011 um 14:54 schrieb Martin Hewitson: On a side note, if I search for NSPopover in the Xcode documentation, it only finds NSPopoverDelegate, but not the class documentation. Anybody else have similar problems? I'm using Xcode 4.1 and the documentation is up to date. Same problem

Re: Strategies for reusing NSPopover

2011-08-13 Thread Chris Hanson
On Aug 13, 2011, at 8:38 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: As I'm writing this I realise it would be much nicer to pass a reference to the model object to the view-controller before launching the popup, then have the view controller update the model object. I'll play with