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's 'controlTextDidChange:' delegate doesn't work

#190

Looks like providing controlTextDidChange: method by CPTextField's delegate doesn't work as expected as delegation is not being sent at all.

It is caused by CPTextField not updating the current value (stringValue) while editing. Once fixed (see attachment) it started working but required another fix as then the control's static text were shown under the input field.

I've proposed a solution to this (hiding static text field while editing) but somebody may come up with a better approach.

Reported by Jakub Pawlowicz · December 31st, 2008 @ 02:21 AM

State: open
Milestone: 0.7
Assigned to: Francisco Tolmasky Francisco Tolmasky

Activity

  1. Jakub Pawlowicz
    Jakub Pawlowicz

    Adding a test case. Updating the CPTextField's stringValue while typing can be seen via Firebug/Webkit debug console.

    December 31st, 2008 @ 02:28 AM

  2. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag changed from appkit, cptextfield to appkit, cptextfield, patch

    I've been able to test this patch and it works as expected.

    January 31st, 2009 @ 01:29 AM

  3. ronin-756 (at lighthouseapp)
    ronin-756 (at lighthouseapp)
    • Tag changed from appkit, cptextfield, patch to @to-review, appkit, cptextfield, patch

    Here is a proposed fix for 0.7b : http://github.com/suitmymind/cap...

    (it also propose a solution for #260 CPTextField needs 2 clicks before it can be edited)

    April 3rd, 2009 @ 08:21 AM

  4. Ross Boucher
    Ross Boucher
    • Milestone set to 0.7
    • Assigned user changed from admin (at 280north) to Francisco Tolmasky
    • State changed from new to open

    Giving this to Francisco, since he just changed a bunch of textfield stuff.

    April 4th, 2009 @ 01:02 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.