• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder


  • Subject: Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
  • From: Markus Spoettl <email@hidden>
  • Date: Mon, 30 Jul 2012 23:31:24 +0200

On 7/30/12 10:46 PM, Keary Suska wrote:
No, the controller does have a valid selection and other fields bound to
other keypaths of the same controller/selection (in other words same
object, because it's a single-object selection) do show values.


Maybe I didn't understand what you are saying. As far as NSTextField is
concerned, nil and empty string are roughly the same, so if you have the
"placeholder" value specified, that value will show for nil as well as empty.
If you have specified that, and clear it, do you get the null value
placeholder?

The problem I have is that a nil string property value causes the NSTextField to show the No-Selection-Placeholder instead of the Null-Value-Placeholder. I am binding the NSTextField value to the "selection" proxy object of the array controller (I also tried object controller, it behaves the same). The selection is valid and not empty. I also tried custom, binding-defined placeholders, it is still showing the wrong placeholder.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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

References: 
 >Bound NSTextField displays Selection Placeholder instead of Null Placeholder (From: Markus Spoettl <email@hidden>)
 >Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder (From: Keary Suska <email@hidden>)
 >Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder (From: Markus Spoettl <email@hidden>)
 >Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Drag-and-drop crashes
  • Next by Date: Re: FSEvents eventid (or perhaps event)'s life
  • Previous by thread: Re: Bound NSTextField displays Selection Placeholder instead of Null Placeholder
  • Next by thread: NSTextView scrolling
  • Index(es):
    • Date
    • Thread