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:
Wolfgang Lux 2008-12-09 21:47:55 +00:00
parent 239a9af20a
commit 50af44f4e8
2 changed files with 11 additions and 0 deletions

View file

@ -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.

View file

@ -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 */