• 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: Placeholder text on a multi-line NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Placeholder text on a multi-line NSTextField


  • Subject: Re: Placeholder text on a multi-line NSTextField
  • From: Ross Carter <email@hidden>
  • Date: Wed, 29 Feb 2012 17:01:29 -0500

Use the delegate method control:textShouldBeginEditing: to set the placeholder string to nil when editing begins, and control:textShouldEndEditing: to restore the placeholder if the text field is empty?


On Feb 29, 2012, at 1:23 PM, Geoff Beier wrote:

> I've opened radar #10954811 about the appearance of placeholder text
> in a multi-line NSTextField. If the placeholder is sufficiently long,
> when a user clicks the field and starts typing, only the first line of
> placeholder text gets cleared until the edit is finished.
>
> I ran across this while picking up a project that I hadn't worked on
> since before the Lion upgrade. This would seem to be new behavior in
> Lion.
>
> Here is a trivial sample project that demonstrates the problem:
> https://downloads.redhoundsoftware.com/listshare/PlaceholderTest.zip
>
> Does anyone know a way to work around this?
>
> Thanks for any insight.
>
> Regards,
>
> Geoff
> _______________________________________________
>
> 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

_______________________________________________

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


  • Follow-Ups:
    • Re: Placeholder text on a multi-line NSTextField
      • From: Geoff Beier <email@hidden>
References: 
 >Placeholder text on a multi-line NSTextField (From: Geoff Beier <email@hidden>)

  • Prev by Date: Re: Round corners of borderless NSWindow without set it transparent
  • Next by Date: Re: Xcode - An Apple Embarrassment
  • Previous by thread: Placeholder text on a multi-line NSTextField
  • Next by thread: Re: Placeholder text on a multi-line NSTextField
  • Index(es):
    • Date
    • Thread