I am writing a program which has a two-column table. The user can fill in the table with whatever he or she wishes, but sometimes it is possible to determine what should be displayed in the left column by looking at what is displayed in the right column. I have set up the program so that a user can turn on an "inference" function, so if the user has:

Column 1: Blank
Column 2: X

Then the program will automatically fill in "A" for column 1 (because there is no other possibility, given the "X" in column 2). So the table now looks like this:

Column 1: A
Column 2: X

Now, the question is, how to implement undo. There are at least two possibilities:

(1) Undo returns column 2 to its previous state, before "X" was entered. An additional undo is required to revert column 1 to blank.
(2) Undo returns column 2 to its previous state, and column 1 to blank.

I'm not sure what is best, from the perspective of designing a UI. I have currently implemented (2), but I have a sneaking suspicion (1) might be more appropriate. Note that the "A" in column 1 is inferred, but there is nothing wrong or odd with it standing alone.

Thanks.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to