More text fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4643 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-07-25 04:07:44 +00:00
parent f7184fd337
commit deae6ecb27
3 changed files with 12 additions and 2 deletions

View file

@ -202,7 +202,12 @@ typedef enum {
/******************* Invalidation sent by NSTextStorage *******************/
- (void)textStorage:(NSTextStorage *)str edited:(unsigned)editedMask range:(NSRange)newCharRange changeInLength:(int)delta invalidatedRange:(NSRange)invalidatedCharRange;
- (void)textStorage: (NSTextStorage *)aTextStorage
edited: (unsigned)mask
range: (NSRange)range
changeInLength: (int)lengthChange
invalidatedRange: (NSRange)invalidatedRange;
// Sent from processEditing in NSTextStorage. newCharRange is the range in the final string which was explicitly edited. invalidatedRange includes stuff which was changed as a result of attribute fixing. invalidatedRange is either equal to newCharRange or larger. Layout managers should not change the contents of the text storage during the execution of this message.
/*********************** Global layout manager options ***********************/

View file

@ -45,6 +45,9 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _GNUstep_H_NSTextStorage
#define _GNUstep_H_NSTextStorage
#import <Foundation/Foundation.h>
#import <AppKit/NSStringDrawing.h>
@ -137,3 +140,4 @@ enum
extern NSString *NSTextStorageWillProcessEditingNotification;
extern NSString *NSTextStorageDidProcessEditingNotification;
#endif

View file

@ -28,6 +28,7 @@
#include <AppKit/NSAttributedString.h>
#include <Foundation/NSGAttributedString.h>
#include <AppKit/NSTextStorage.h>
#include <AppKit/NSLayoutManager.h>
@implementation NSTextStorage
@ -193,7 +194,7 @@ static Class concrete;
for (i=0;i<[layoutManagers count];i++)
{
id lManager = [layoutManagers objectAtIndex:i];
NSLayoutManager *lManager = [layoutManagers objectAtIndex:i];
[lManager textStorage:self edited:editedMask range:editedRange
changeInLength:editedDelta invalidatedRange:r];