• 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: Best way to hook into the run loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to hook into the run loop?


  • Subject: Re: Best way to hook into the run loop?
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 6 Dec 2009 10:12:20 +0100

On 05.12.2009, at 01:36, Graham Cox wrote:
> If anyone can think of an elegant and straightforward alternative, please feel free to suggest it. I've found that the "obvious" solution of submitting an object's state at the start of a drag is actually really awkward and horrible in practice, since it requires that the controller needs to know in advance all of the relevant properties that will be changed, when in fact that's none of its business. The data model should be free to change anything it needs to in response to a higher-level command and submit its own undo tasks.

 I thought that was what undo groups were for? Open a group at the start of the drag manually, close it at the end, and everything in between gets lumped into one big action at the end. It may get "replayed" internally, but will all be triggered by one Cmd-Z.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Best way to hook into the run loop?
      • From: Graham Cox <email@hidden>
References: 
 >Best way to hook into the run loop? (From: Graham Cox <email@hidden>)
 >Re: Best way to hook into the run loop? (From: Mike Abdullah <email@hidden>)
 >Re: Best way to hook into the run loop? (From: Graham Cox <email@hidden>)
 >Re: Best way to hook into the run loop? (From: Quincey Morris <email@hidden>)
 >Re: Best way to hook into the run loop? (From: Graham Cox <email@hidden>)

  • Prev by Date: Array Controller "Select Inserted Objects" just stopped working
  • Next by Date: Re: Best way to hook into the run loop?
  • Previous by thread: Re: Best way to hook into the run loop?
  • Next by thread: Re: Best way to hook into the run loop?
  • Index(es):
    • Date
    • Thread