mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:21:22 +00:00
Fix target-action
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3990 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
085cb484ad
commit
3f76d4ce1b
3 changed files with 34 additions and 4 deletions
|
@ -1,4 +1,9 @@
|
|||
Thu Mar 25 20:34:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Sat Mar 27 05:5800 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSBrowser.m: Override target, setTarget, action, setAction
|
||||
* Headers/AppKit/NSBrowser.h: Add _action and _target ivars.
|
||||
|
||||
FRi Mar 26 20:34:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSImage.m: Incorporated fixes suggested by dave@turbocat.de
|
||||
|
||||
|
|
|
@ -49,18 +49,18 @@
|
|||
BOOL _allowsBranchSelection;
|
||||
BOOL _allowsEmptySelection;
|
||||
BOOL _allowsMultipleSelection;
|
||||
BOOL _reusesColumns;
|
||||
int _maxVisibleColumns;
|
||||
float _minColumnWidth;
|
||||
BOOL _reusesColumns;
|
||||
BOOL _separatesColumns;
|
||||
BOOL _takesTitleFromPreviousColumn;
|
||||
BOOL _isTitled;
|
||||
BOOL _hasHorizontalScroller;
|
||||
NSScroller *_horizontalScroller;
|
||||
BOOL _hasHorizontalScroller;
|
||||
BOOL _acceptsArrowKeys;
|
||||
BOOL _sendsActionOnArrowKeys;
|
||||
id _browserDelegate;
|
||||
BOOL _passiveDelegate;
|
||||
id _browserDelegate;
|
||||
SEL _doubleAction;
|
||||
NSMutableArray *_browserColumns;
|
||||
id _titleCell;
|
||||
|
@ -68,6 +68,8 @@
|
|||
int _lastColumnLoaded;
|
||||
int _firstVisibleColumn;
|
||||
int _lastVisibleColumn;
|
||||
id _target;
|
||||
SEL _action;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -257,6 +257,29 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
//
|
||||
// Target-actions stuff
|
||||
//
|
||||
- (void) setTarget: (id)t
|
||||
{
|
||||
_target = t;
|
||||
}
|
||||
|
||||
- (id) target
|
||||
{
|
||||
return _target;
|
||||
}
|
||||
|
||||
- (void) setAction: (SEL)s
|
||||
{
|
||||
_action = s;
|
||||
}
|
||||
|
||||
- (SEL) action
|
||||
{
|
||||
return _action;
|
||||
}
|
||||
|
||||
//
|
||||
// Setting the Delegate
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue