Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Fixed bug in delegate's NSNotificationCenter observation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Rozanski committed Mar 27, 2011
1 parent 8a6b4bc commit 84c136f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/PXListView.m
Expand Up @@ -91,9 +91,9 @@ - (void)dealloc

- (void)setDelegate:(id<PXListViewDelegate>)delegate
{
[_delegate removeObserver:_delegate
name:PXListViewSelectionDidChange
object:self];
[[NSNotificationCenter defaultCenter] removeObserver:_delegate
name:PXListViewSelectionDidChange
object:self];

_delegate = delegate;

Expand Down

0 comments on commit 84c136f

Please sign in to comment.