Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
- Subject: Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
- From: Keary Suska <email@hidden>
- Date: Fri, 28 Dec 2012 21:53:12 -0700
> On Jul 30, 2012, at 1:36 AM, Markus Spoettl wrote:
>
> > Hello,
> >
> > this is must be embarrassingly simple, still I can't figure out what I'm doing wrong this time.
> >
> > I have an NSTextField bound to some NSString property via the selection proxy of an array controller. When the property value is nil, the field displays the selection placeholder, not the null placeholder. Why?
> >
> > When I bind the field to the object directly (not via controller), I get the null placeholder. Are the controllers not capable of doing this?
I am reopening this issue as somewhat ironically I have started to experience the same or similar issue. In my case, almost every NSTextField in almost every XIB shows the "No Selection" placeholder when the field is cleared and hence the corresponding value is set to nil. To be specific, in my case it only happens when the there is a value before the window is shown, but then cleared, but not exited. So, the value isn't even being changed in the model and I have verified that the controller isn't even queried about the model value's state. Therefore, the controller is *not* returning the no selection marker, but somehow the field editor is getting confused.
I have at least one other XIB that does *not* exhibit this behavior, but I can't find what might be different--other than the specific key path every setting is the same for the properly functioning field so I don't believe this is a settings issue.
Has anyone else come across this issue, or have a way to debug it further? I suppose I could go through my 75+ xibs and set the no selection placeholder for every next field to a single space but that seems like madness.
TIA,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden