Strategies for reusing NSPopover
Strategies for reusing NSPopover
- Subject: Strategies for reusing NSPopover
- From: Martin Hewitson <email@hidden>
- Date: Sat, 13 Aug 2011 14:54:29 +0200
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 popover closed, how can I know which button caused the popover to be shown? I was looking for some kind of user-info which would appear in the notification, but I can't find anything so far. I could have two popovers, then select in the delegate that way, but that seems very inelegant.
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.
Best wishes,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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