mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
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:
parent
2a5ee82d7c
commit
15bd7324f4
4 changed files with 48 additions and 60 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue