use coherent delegate name

This commit is contained in:
Antoine Mercadal
2011-11-02 15:55:58 +01:00
parent 06985a5b6c
commit ddb6f63ea7
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
#pragma mark Delegates
/*! @ignore */
- (BOOL)didAttachedWindowShouldClose:(_CPAttachedWindow)anAttachedWindow
- (BOOL)attachedWindowShouldClose:(_CPAttachedWindow)anAttachedWindow
{
[self close];
+2 -2
View File
@@ -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];
}
}