• 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: Markus Spoettl <email@hidden>
  • Date: Mon, 7 Dec 2009 00:47:36 +0100

On Dec 7, 2009, at 12:12 AM, Graham Cox wrote:
> Yes, which does make me wonder how others have implemented undo of drags in general. Is there a simple solution staring me in the face and I just can't see it?


I believe the problems with multi-event undoing stem from the fact the you implemented the undo as a feature of the model when it could in fact be a controller feature - or another controller's whole purpose.

While the model can't know why a certain key changed its value unless you give it more information than it really should have, a controller - let's say overseeing mouse handling - would know what is going on and could act accordingly. I'm not saying that things would be easier generally, but it doesn't necessarily have to be the model that cares about undo.

In my app it is the model that handle undo, btw. :)

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

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>)
 >Re: Best way to hook into the run loop? (From: Uli Kusterer <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: 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: Re: Best way to hook into the run loop?
  • Next by Date: unrecognized selector error when calling -stringValue on NSNumber
  • 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