Skip to content

Commit

Permalink
FIXED: Crash when hit CMD+Z on a control in a CPPopover
Browse files Browse the repository at this point in the history
Previously, there were collision in addition delegate bitmask identifiers between CPWindow and _CPPopoverWindow.
This patch fixes this collision
  • Loading branch information
primalmotion committed Apr 23, 2014
1 parent fd35563 commit 07f7ad0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AppKit/_CPPopoverWindow.j
Expand Up @@ -35,9 +35,11 @@ CPClosableOnBlurWindowMask = 1 << 4;
CPPopoverAppearanceMinimal = 0;
CPPopoverAppearanceHUD = 1;

var _CPPopoverWindow_shouldClose_ = 1 << 0,
_CPPopoverWindow_didClose_ = 1 << 1,
_CPPopoverWindow_didShow_ = 1 << 2;
// we don't start from 1 because CPWindow and so CPPanel already
// has this delegate bitmask identifier for 1, 2 and 3.
var _CPPopoverWindow_shouldClose_ = 1 << 4,
_CPPopoverWindow_didClose_ = 1 << 5,
_CPPopoverWindow_didShow_ = 1 << 6;


/*!
Expand Down

0 comments on commit 07f7ad0

Please sign in to comment.