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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rosscarterdev%40me.com
> 
> This email sent to rosscarter...@me.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to