mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
Add a provisional implementation of the centerSelectionInVisibleArea:
responder method to NSTextView. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27267 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
239a9af20a
commit
50af44f4e8
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-12-09 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView_actions.m (-centerSelectionInVisibleArea:):
|
||||
Provide a provisional implementation.
|
||||
|
||||
* Source/NSSavePanel.m (-setAllowedFileTypes:): Change extension
|
||||
of the file name if the current extension is no longer allowed.
|
||||
|
||||
|
|
|
@ -1322,6 +1322,14 @@ and layout is left-to-right */
|
|||
[[self enclosingScrollView] scrollPageUp: sender];
|
||||
}
|
||||
|
||||
- (void) centerSelectionInVisibleArea: (id)sender
|
||||
{
|
||||
/* FIXME: This does not really implement what the method's name suggests,
|
||||
but it is at least better than nothing.
|
||||
*/
|
||||
[self scrollRangeToVisible: [self selectedRange]];
|
||||
}
|
||||
|
||||
|
||||
/* -selectAll: inherited from NSText */
|
||||
|
||||
|
|
Loading…
Reference in a new issue