Remove useless KVB code. I hope to commit better code later on.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34097 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-10-31 17:12:39 +00:00
parent 2a5ee82d7c
commit 15bd7324f4
4 changed files with 48 additions and 60 deletions

View file

@ -66,11 +66,7 @@ Class _nspopupbuttonCellClass = 0;
[self exposeBinding: NSSelectedIndexBinding];
[self exposeBinding: NSSelectedObjectBinding];
[self setKeys: [NSArray arrayWithObject: NSSelectedIndexBinding]
triggerChangeNotificationsForDependentKey: NSSelectedObjectBinding];
[self exposeBinding: NSSelectedTagBinding];
[self setKeys: [NSArray arrayWithObject: NSSelectedIndexBinding]
triggerChangeNotificationsForDependentKey: NSSelectedTagBinding];
}
}
@ -270,9 +266,7 @@ this to return nil to indicate that we have no context menu.
- (void) selectItem: (id <NSMenuItem>)anObject
{
[self willChangeValueForKey: NSSelectedIndexBinding];
[_cell selectItem: anObject];
[self didChangeValueForKey: NSSelectedIndexBinding];
[self synchronizeTitleAndSelectedItem];
}
@ -282,9 +276,7 @@ this to return nil to indicate that we have no context menu.
*/
- (void) selectItemAtIndex: (int)index
{
[self willChangeValueForKey: NSSelectedIndexBinding];
[_cell selectItemAtIndex: index];
[self didChangeValueForKey: NSSelectedIndexBinding];
[self synchronizeTitleAndSelectedItem];
}
@ -295,9 +287,7 @@ this to return nil to indicate that we have no context menu.
*/
- (void) selectItemWithTitle: (NSString*)title
{
[self willChangeValueForKey: NSSelectedIndexBinding];
[_cell selectItemWithTitle: title];
[self didChangeValueForKey: NSSelectedIndexBinding];
[self synchronizeTitleAndSelectedItem];
}