Re: setPlaceholderString
Re: setPlaceholderString
- Subject: Re: setPlaceholderString
- From: Scott Anguish <email@hidden>
- Date: Fri, 2 Jan 2004 21:40:17 -0500
On Jan 2, 2004, at 4:33 PM, matt neuburg wrote:
>
According to the docs on setPlaceholderString:
>
>
(1) "All of the methods declared by this class (NSTextFieldCell) are
>
also
>
declared by NSTextField."
>
>
But when I try to send setPlaceholderString: to NSTextField, I'm
>
turned away
>
at the door. I have to send it to [NSTextField cell].
>
it's possible that the above doc was written before the placeholder
string support was added.
I'd suggest filing a bug, it should probably be supported by
NSTextField as well as NSTextFieldCell
>
(2) The placeholder string is supposed to "appear in the text field
>
cell if
>
the actual string is nil or @""".
>
>
But I can't get it to appear; the text field comes up empty, both when
>
simulating a run in IB and when running the actual app.
>
>
Might it be that this feature isn't actually working outside of
>
bindings and
>
the controller layer? m.
>
I did this just yesterday outside of the controller layer, and it
worked fine.
the placeholder only shows up when the text field is not being
edited... it's not a value you can edit, rather it's the value that
appears when the field is empty, and is not the current field.
try adding another text field, or any other UI item that can become
the responder.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.