mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
f7184fd337
commit
deae6ecb27
3 changed files with 12 additions and 2 deletions
|
@ -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 ***********************/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue