bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSTextField.m patch


From: Serg Stoyan
Subject: Re: NSTextField.m patch
Date: Wed, 26 Jun 2002 21:34:39 +0300
User-agent: Mutt/1.3.16i

Hi, Nicola Pero.

 NP> > Create NSTextField. Enter into it some text. Press Return key. Entire
 NP> > contents of the text field should be selected(highlighted). But it 
doesn't.
 NP> > Moreover, if i try to select text by NSTextFiled's selectText:
 NP> > method (in controlTextDidEndEditing: delegate's method), text flashes 
 NP> > from selected(highlighted) to unselected and stays unselected.
 NP> 
 NP> Ok - thanks - I didn't know about this possibility - but it seems you are
 NP> right - the NeXTSTEP 3.3 user interface guidelines and documentation
 NP> clearly states -
 
  [User Interface Guide thoughts skipped]

 NP> I think calling selectText: in controlTextDidEndEditing: should do it ...
 NP> but I can see why it didn't - I think the bug was in NSTextField.m, which
 NP> was posting the 'NSControlTextDidEndEditing' notification too early -
 NP> before actually ending editing!
 NP> 
 NP> I fixed this on CVS - if you try again from CVS, hopefully now using
 NP> selectText: inside controlTextDidEndEditing: should now work :-) [I didn't
 NP> try it, so please let me know if you still have problems]

  I've just tried it again. Now text selection even not flashes ;) I'll create 
  a little test so you can try it for yourself.

-- 
Serg Stoyan



reply via email to

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