Changeset [93cc97002a1bfc13de019ebd8e4660e284c7f028] by Aparajita Fishman
Revision 93cc97002a1bfc13de019ebd8e4660e284c7f028,
committed by Aparajita Fishman
· March 31st, 2012 @ 03:40 PM
Cocoa conformance and bug fixes
- showRelativeToRect:ofView:preferredEdge: must take provide a view, and if the rect is empty it defaults to the view's bounds.
- If If showRelativeToRect is called while a popover is closing, it is ignored.
- If showRelativeToRect is called when the popover is already open, it should just reposition the existing popover.
- close should NOT consult the delegate's popoverShouldClose. Only performClose should do that.
- If a window is closed, all of its popovers immediately order out.
- Updated demo app to cover more cases.
- Note that child popovers are currently not supported, as this requires support for child windows in CPWindow. https://github.com/cappuccino/cappuccino/commit/93cc97002a1bfc13de0...
10 changed files
-
A
Tests/Manual/CPPopover/Resources/MainMenu.cib -
A
Tests/Manual/CPPopover/Resources/MainMenu.xib -
M
AppKit/CPPopover.j -
M
AppKit/CPWindow/_CPAttachedWindowView.j -
M
AppKit/_CPAttachedWindow.j -
M
Tests/Manual/CPPopover/AppController.j -
M
Tests/Manual/CPPopover/Info.plist -
M
Tests/Manual/CPPopover/Jakefile -
M
Tests/Manual/CPPopover/index-debug.html -
M
Tools/nib2cib/NSPopover.j