From ddb6f63ea7c7528d7557d6cf61ae0f4cd04905ca Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Wed, 2 Nov 2011 15:55:58 +0100 Subject: [PATCH] use coherent delegate name --- AppKit/CPPopover.j | 2 +- AppKit/_CPAttachedWindow.j | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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]; } }