Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPTextField placeholder functionality

#101

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.

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

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. admin (at 280north)
    admin (at 280north)
    • State changed from new to resolved

    (from [dd56b75bd699b1ce653e5ba85e5f624625340a41]) Better behavior for placeholder text in CPTextField.

    Primarily from Nick, partially from me.

    [#101 CPTextField placeholder functionality state:resolved] http://github.com/280north/cappu...

    October 19th, 2008 @ 05:09 PM

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.