• 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
Setting the Null Placeholder for bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting the Null Placeholder for bindings


  • Subject: Setting the Null Placeholder for bindings
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 10 Mar 2016 14:46:37 +0700

I have a TextField bound to Shared User Defaults Controller.
The Null Placeholder is set to “default”.

When the window comes up, it shows the value from NSUserDefaults registerDefaults:. Ok
When I remove the string from the TextField, I see a grey value “default”. Also to be expected.
The actual value of the UserDefaults seems to come in this case from registerDefaults. Also good.

But how can I replace “default” with the actual string?
Yes, I can do this in Xcode, but I would like to do this from inside my program.

Can this be done? If yes, how?

Gerriet.


_______________________________________________

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


  • Prev by Date: Re: Apple Bug no response
  • Next by Date: Thoughts on a line-at-a-time data-reading class
  • Previous by thread: Re: Can't generate receipt OS X after 173 exit
  • Next by thread: Thoughts on a line-at-a-time data-reading class
  • Index(es):
    • Date
    • Thread