mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:50:46 +00:00
Moved the string method to NSTextView
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8372 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
920db3c3ca
commit
dfb8d582cf
1 changed files with 19 additions and 16 deletions
|
@ -140,6 +140,7 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
//
|
//
|
||||||
// Instance methods
|
// Instance methods
|
||||||
//
|
//
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialization
|
// Initialization
|
||||||
//
|
//
|
||||||
|
@ -149,11 +150,11 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
return [self initWithFrame: NSMakeRect (0, 0, 100, 100)];
|
return [self initWithFrame: NSMakeRect (0, 0, 100, 100)];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void) dealloc
|
||||||
{
|
{
|
||||||
RELEASE(_background_color);
|
RELEASE (_background_color);
|
||||||
RELEASE(_caret_color);
|
RELEASE (_caret_color);
|
||||||
RELEASE(_typingAttributes);
|
RELEASE (_typingAttributes);
|
||||||
|
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
@ -196,29 +197,29 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
|
|
||||||
- (NSString*) string
|
- (NSString*) string
|
||||||
{
|
{
|
||||||
// FIXME: This should remove all the attachement characters.
|
[self subclassResponsibility: _cmd];
|
||||||
return [_textStorage string];
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
// old methods
|
// old methods
|
||||||
- (void) replaceRange: (NSRange)aRange withRTFD: (NSData*)rtfdData
|
- (void) replaceRange: (NSRange)aRange withRTFD: (NSData*)rtfdData
|
||||||
{
|
{
|
||||||
[self replaceCharactersInRange: aRange withRTFD: rtfdData];
|
[self replaceCharactersInRange: aRange withRTFD: rtfdData];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) replaceRange: (NSRange)aRange withRTF: (NSData*)rtfData
|
- (void) replaceRange: (NSRange)aRange withRTF: (NSData*)rtfData
|
||||||
{
|
{
|
||||||
[self replaceCharactersInRange: aRange withRTF: rtfData];
|
[self replaceCharactersInRange: aRange withRTF: rtfData];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) replaceRange: (NSRange)aRange withString: (NSString*)aString
|
- (void) replaceRange: (NSRange)aRange withString: (NSString*)aString
|
||||||
{
|
{
|
||||||
[self replaceCharactersInRange: aRange withString: aString];
|
[self replaceCharactersInRange: aRange withString: aString];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setText: (NSString*)aString range: (NSRange)aRange
|
- (void) setText: (NSString*)aString range: (NSRange)aRange
|
||||||
{
|
{
|
||||||
[self replaceCharactersInRange: aRange withString: aString];
|
[self replaceCharactersInRange: aRange withString: aString];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setText: (NSString*)string
|
- (void) setText: (NSString*)string
|
||||||
|
@ -1528,7 +1529,7 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSText(NSTextView)
|
@implementation NSText (NSTextView)
|
||||||
|
|
||||||
- (void) setRulerVisible: (BOOL)flag
|
- (void) setRulerVisible: (BOOL)flag
|
||||||
{
|
{
|
||||||
|
@ -1536,7 +1537,9 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
|
||||||
|
|
||||||
_tf.is_ruler_visible = flag;
|
_tf.is_ruler_visible = flag;
|
||||||
if (sv != nil)
|
if (sv != nil)
|
||||||
[sv setRulersVisible: _tf.is_ruler_visible];
|
{
|
||||||
|
[sv setRulersVisible: _tf.is_ruler_visible];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (int) spellCheckerDocumentTag
|
- (int) spellCheckerDocumentTag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue