FROM : Mike Ferris
DATE : Sun Dec 22 18:36:35 2002
You always get the DidEndEditing whether any changes happened or not.
You can either compare the value at that time with the original value
to see if it changed, or you can also catch DidChange and make a note
of it.
The first requires you know what the original value is, but usually the
text field is reflecting a model value somewhere so often this is easy
enough. The second requires a little book-keeping, and it also will
have false positives if I edit the field but wind up editing it back to
the same value it had originally.
Mike
Begin forwarded message:
> From: Jonathan Jackel <<email_removed>>
> Date: Sun Dec 22, 2002 7:30:05 AM US/Pacific
> To: Cocoa Development <<email_removed>>
> Subject: Detecting A Changed Cell When Editing Ends
>
> I want to know when a text field cell ends editing AND has been
> changed.
>
> controlTextDidChange: fires off a notification with every keystroke.
> I only
> want to know about the change when editing ends.
>
> controlTextDidEndEditing: notifies me when editing ends, whether the
> cell
> has changed or not. I want to know whether the cell has changed.
>
> Can someone point me in the right direction?
>
> Jonathan
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sun Dec 22 18:36:35 2002
You always get the DidEndEditing whether any changes happened or not.
You can either compare the value at that time with the original value
to see if it changed, or you can also catch DidChange and make a note
of it.
The first requires you know what the original value is, but usually the
text field is reflecting a model value somewhere so often this is easy
enough. The second requires a little book-keeping, and it also will
have false positives if I edit the field but wind up editing it back to
the same value it had originally.
Mike
Begin forwarded message:
> From: Jonathan Jackel <<email_removed>>
> Date: Sun Dec 22, 2002 7:30:05 AM US/Pacific
> To: Cocoa Development <<email_removed>>
> Subject: Detecting A Changed Cell When Editing Ends
>
> I want to know when a text field cell ends editing AND has been
> changed.
>
> controlTextDidChange: fires off a notification with every keystroke.
> I only
> want to know about the change when editing ends.
>
> controlTextDidEndEditing: notifies me when editing ends, whether the
> cell
> has changed or not. I want to know whether the cell has changed.
>
> Can someone point me in the right direction?
>
> Jonathan
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Jonathan Jackel | Dec 22, 16:30 | |
| Mike Ferris | Dec 22, 18:36 | |
| David Rio Vierra | Dec 22, 22:26 | |
| Jonathan Jackel | Dec 23, 02:36 | |
| James DiPalma | Dec 23, 07:28 |






Cocoa mail archive

