Best way to hook into the run loop?
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