Re: using Undo with portable C++ data model
Re: using Undo with portable C++ data model
- Subject: Re: using Undo with portable C++ data model
- From: Erik Buck <email@hidden>
- Date: Fri, 6 Jun 2008 22:52:21 -0400
There are many pure C++ applications in the world that implement
undo. You don't have to use the Cocoa undo at all if portability is
important. Implement undo in C++ using the Command pattern or
whatever technique you want. Then integrate Cocoa GUI support via
menu items etc. for invoking the C++ undo.
I realize the Cocoa provides snazzy undo/redo support that is
difficult to mimic cleanly in C++. That's one reason many people like
Objective-C and Cocoa.
The other alternative is to write your "portable" code in portable
Objective-C.
_______________________________________________
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