Re: Does NSTextField show placeholder when bound?
Re: Does NSTextField show placeholder when bound?
- Subject: Re: Does NSTextField show placeholder when bound?
- From: Matt Neuburg <email@hidden>
- Date: Tue, 27 Jun 2006 07:17:14 -0700
- Thread-topic: Does NSTextField show placeholder when bound?
On Mon, 26 Jun 2006 14:33:21 -0700, Jason Rusoff <email@hidden> said:
>In thinking more about the problem I'm having with text fields not showing the
placeholder string, I realized that this may be a side effect of the control
getting it's value from a binding. The NSTextView is bound to a data model for
it's value. Do I need to find a way through bindings to notify the textview that
it should draw the placeholder? Does the code in the textview that catches an
empty field work when the data is from a binding?
Make up your mind - is this an NSTextField or an NSTextView? It makes a big
difference.
Again, how did you set up this binding and how did you set up the
placeholder string? If there were no binding, you'd set up the placeholder
string on panel 1 of the Inspector, but since there is a binding, you need
to set up the placeholder on panel 4. And then it depends what you are bound
to and how; you may be getting the No Selection placeholder instead of the
Null placeholder.
And, as I said before, under no circumstances will you see the placeholder
if you are *in* the field. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden