Send the sort message to the data source not the delegate.

This should fix bug #32806.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32624 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-03-16 19:07:53 +00:00
parent 9fb7317eef
commit 38c2685a68
3 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2011-03-16 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSOutlineView.m (-_didChangeSortDescriptors:),
* Source/NSTableView.m (-_didChangeSortDescriptors:): Send the
message to the data source not the delegate.
2011-03-16 06:30-EDT Gregory John Casamento <greg.casamento@gmail.com> 2011-03-16 06:30-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeMenu.m: Use copy in setMenu:forWindow: instead of * Source/GSThemeMenu.m: Use copy in setMenu:forWindow: instead of

View file

@ -1714,10 +1714,10 @@ Also returns the child index relative to this parent. */
- (void) _didChangeSortDescriptors: (NSArray *)oldSortDescriptors - (void) _didChangeSortDescriptors: (NSArray *)oldSortDescriptors
{ {
if ([_delegate if ([_dataSource
respondsToSelector: @selector(outlineView:sortDescriptorsDidChange:)]) respondsToSelector: @selector(outlineView:sortDescriptorsDidChange:)])
{ {
[_delegate outlineView: self sortDescriptorsDidChange: oldSortDescriptors]; [_dataSource outlineView: self sortDescriptorsDidChange: oldSortDescriptors];
} }
} }

View file

@ -6475,10 +6475,10 @@ For a more detailed explanation, -setSortDescriptors:. */
- (void) _didChangeSortDescriptors: (NSArray *)oldSortDescriptors - (void) _didChangeSortDescriptors: (NSArray *)oldSortDescriptors
{ {
if ([_delegate if ([_dataSource
respondsToSelector: @selector(tableView:sortDescriptorsDidChange:)]) respondsToSelector: @selector(tableView:sortDescriptorsDidChange:)])
{ {
[_delegate tableView: self sortDescriptorsDidChange: oldSortDescriptors]; [_dataSource tableView: self sortDescriptorsDidChange: oldSortDescriptors];
} }
} }