bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in NSTextView delegate


From: Nicola Pero
Subject: Re: Bug in NSTextView delegate
Date: Thu, 12 Apr 2001 12:00:50 +0100 (BST)

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
> Bug-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnustep
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]