Skip to content

Commit ca45590

Browse files
committed
Merge branch 'ChimpStudios-master'
2 parents 19c665a + df785ce commit ca45590

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: BFColorPickerPopover/BFPopoverColorWell.m

+7
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ - (void)activateWithPopover {
7373

7474
// Setup and show the popover.
7575
self.popover = [BFColorPickerPopover sharedPopover];
76+
self.popover.delegate = self;
7677
self.popover.color = self.color;
7778
[self.popover showRelativeToRect:self.frame ofView:self.superview preferredEdge:self.preferredEdgeForPopover];
7879
self.popover.colorWell = self;
@@ -101,6 +102,7 @@ - (void)deactivate {
101102
if (!self.isActive) return;
102103
[super deactivate];
103104
self.popover.colorWell = nil;
105+
self.popover.delegate = nil;
104106
self.popover = nil;
105107
self.isActive = NO;
106108
}
@@ -116,4 +118,9 @@ - (void)mouseDown:(NSEvent *)theEvent {
116118

117119
}
118120

121+
- (void)popoverDidClose:(NSNotification *)notification
122+
{
123+
[self deactivate];
124+
}
125+
119126
@end

0 commit comments

Comments
 (0)