• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting A Changed Cell When Editing Ends
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting A Changed Cell When Editing Ends


  • Subject: Re: Detecting A Changed Cell When Editing Ends
  • From: Mike Ferris <email@hidden>
  • Date: Sun, 22 Dec 2002 09:36:35 -0800

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@hidden>
Date: Sun Dec 22, 2002 7:30:05 AM US/Pacific
To: Cocoa Development <email@hidden>
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@hidden
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@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Detecting A Changed Cell When Editing Ends (From: Jonathan Jackel <email@hidden>)

  • Prev by Date: Re: Global utility windows
  • Next by Date: Re: Global utility windows
  • Previous by thread: Detecting A Changed Cell When Editing Ends
  • Next by thread: Re: Detecting A Changed Cell When Editing Ends
  • Index(es):
    • Date
    • Thread