• 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: Undoable controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undoable controls


  • Subject: Re: Undoable controls
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 8 Sep 2005 04:11:23 -0400

On Sep 7, 2005, at 9:44 PM, Frode wrote:

My software needs undoable controls for NSControls, in particular for textfields (NSTextField, not NSTextView!) and checkboxes (NSButton).

That's not the usual way of thinking about it. Normally, undo is thought of as applying to your application's data - that is, the Model layer objects in an MVC design. The controls you're speaking of - the View layer - reflect the state of the data, and update themselves accordingly when they're notified of data changes.


Anyway, to learn about undo, here's a good place to start:

http://developer.apple.com/documentation/Cocoa/Conceptual/ AppArchitecture/Concepts/Undo.html

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Undoable controls
      • From: Frode <email@hidden>
    • Re: Undoable controls
      • From: Frode <email@hidden>
References: 
 >Undoable controls (From: Frode <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 2, Issue 1343
  • Next by Date: (no subject)
  • Previous by thread: Undoable controls
  • Next by thread: Re: Undoable controls
  • Index(es):
    • Date
    • Thread