Re: Naive Pop-Up Button Example
Re: Naive Pop-Up Button Example
- Subject: Re: Naive Pop-Up Button Example
- From: "Lizardo H. C. M. Nunes" <email@hidden>
- Date: Sun, 23 Sep 2001 16:34:14 -0300
>
From: Ondra Cada <email@hidden>
>
To: "Lizardo H. C. M. Nunes" <email@hidden>
>
Subject: Re: Naive Pop-Up Button Example
>
Date: Sun, Sep 23, 2001, 8:41 AM
>
>
>
Of course since you are just playing around its not important, but it's
>
better to use tags (or different targets/actions) to distinguish widgets. The
>
strings should remain freely localizable.
You are right, it's not important; that's why I'm simply pasting the example
given by Apple in the documentation ( Take a look at the "NSPopUPButton"
documentation and you'll see. ).
>
>
LHCMN> It works fine till I write
>
LHCMN> on the textField something with the "Editable" choice "turned on".
>
LHCMN> Choosing any of the other two choices actually displays the new
>
LHCMN> "title" and changes the background color, but it doesn't set it as non
>
LHCMN> editable, I'm still able to write on it.
>
>
This I kind of don't understand. If you mean that "your code called
>
[textField setEditable:NO], and the field is still editable afterwards", that
>
would be quite strange. Are you _sure_ you don't call [textField
>
setEditable:YES] later in the same event?
Yes, I'm sure. But once I press "return" it becomes non editable again (?).
Lizardo H. C. M. Nunes
...But we preach Christ crucified, to the Jews a stumbling block, and to the
Greeks foolishness;(...)but God has chosen the foolish things of the world
to confound the wise, and God has chosen the weak things of the world to
confound the things which are strong;(I Cor.1:23&27)