#101 ✓resolved
Nick Takayama

CPTextField placeholder functionality

Reported by Nick Takayama | October 10th, 2008 @ 04:24 AM

I've added code to make the placeholder text work in CPTextField, encompassing the following behavior:

When the CPTextField is first rendered, it displays the placeholder text

When the CPTextField becomesFirstResponder it removes the placeholder text, leaving a blank field (but if the textfield was previously assigned a different value it leaves it intact)

Calls to CPTextField stringValue: do not get the placeholder value, they receive an empty string

When CPTextField resignsFirstResponder and the field is empty, it repopulates with the placeholder text

Patch is attached to this ticket.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket


Referenced by