diff --git a/AppKit/CPPopover.j b/AppKit/CPPopover.j index 689249477..c3d664707 100644 --- a/AppKit/CPPopover.j +++ b/AppKit/CPPopover.j @@ -274,7 +274,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0, #pragma mark Delegates /*! @ignore */ -- (BOOL)didAttachedWindowShouldClose:(_CPAttachedWindow)anAttachedWindow +- (BOOL)attachedWindowShouldClose:(_CPAttachedWindow)anAttachedWindow { [self close]; diff --git a/AppKit/_CPAttachedWindow.j b/AppKit/_CPAttachedWindow.j index 0759ac4cb..54dd524eb 100644 --- a/AppKit/_CPAttachedWindow.j +++ b/AppKit/_CPAttachedWindow.j @@ -408,8 +408,8 @@ CPPopoverAppearanceHUD = 1; { if (_closeOnBlur && !_isClosed) { - if (!_delegate || ([_delegate respondsToSelector:@selector(didAttachedWindowShouldClose:)] - && [_delegate didAttachedWindowShouldClose:self])) + if (!_delegate || ([_delegate respondsToSelector:@selector(attachedWindowShouldClose:)] + && [_delegate attachedWindowShouldClose:self])) [self close]; } }