Hi Jan,

it has been tested - what happens is - 

openstep does not send the notification for a color change;
macosx does send the notification for a color change.

the default behaviour will remain the one as in macosx

One solution is for you to change your code - the other one is to add to
NSTextView a method

+ (void) setCallDidChangeTextForAttributeChange: (BOOL)flag;

which you can call with `NO' to switch to openstep behaviour (which means,
it would stop calling didChangeText for changes in text formatting).

The request for this behaviour must be hard-coded into the program and not
set by user defaults as you break the program if you run it with the wrong
default.



On Tue, 3 Apr 2001, Jan Trembulak wrote:

> Hi,
> 
> I thing that NSTextView sends 'NSTextDidChangeNotification' also in
> cases, when the text are not changed (for example, when I change color
> of text or font of text).
> This notification are posted in 'didChangeText'. This notification
> should be posted only when I change text (by typeing from keyboard, or
> from clipboard).
> 
> thank you.
> 
> Jan Trembulak
> 
> 
> 
> _______________________________________________
> Bug-gnustep mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/bug-gnustep
> 



_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to