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

Best way to hook into the run loop?


  • Subject: Best way to hook into the run loop?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 4 Dec 2009 15:17:19 +1100

As my undo woes continue and multiply, I'm working on my own undo implementation, as least as a back-up strategy.

One thing I'd like to do is to match NSUndoManager's ability to automatically open and close groups as the run loop cycles. What's the best way to do this?

What's needed is a way to call a class method of my undo manager at the start and end of the every cycle of the main run loop, before any events are dispatched.

I notice that NSUndoManager has a 'run loop modes' property but it's unclear where and how that is used.

Thanks for any help,

--Graham_______________________________________________

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: Mike Abdullah <email@hidden>
    • Re: Best way to hook into the run loop?
      • From: Jason Foreman <email@hidden>
  • Prev by Date: Re: Text insertion point not blinking
  • Next by Date: Re: Outline View.
  • Previous by thread: Re: Outline View.
  • Next by thread: Re: Best way to hook into the run loop?
  • Index(es):
    • Date
    • Thread