Re: Placeholder text on a multi-line NSTextField
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