NSUndoManager and Image Manipulation & Zoom
NSUndoManager and Image Manipulation & Zoom
- Subject: NSUndoManager and Image Manipulation & Zoom
- From: Michael Becker <email@hidden>
- Date: Mon, 19 Jan 2004 14:43:26 +0100
Hi all!
I am fairly new to NSUndoManager. In my application, the user can
perform several image (NSImage) manipulating actions and I want them to
be able to undo/redo them.
E.g., if the user applies a "mosaic"-effect to the image, or draws into
it, what is the best way to enable undo?
Another question concerning this topic is: How can I achieve Zooming
into images? Right now, I am using the usual NSAffineTransform scale
methods, but when I zoom out of the image, and then zoom in again, it's
totally corrupted (which is quite obvious as shrinking a 400x400 image
to 40x40 results in loss of information).
Do I need to have a "background" image which always stays in its
original state and perform the modifications/manipulations on copies of
it?
Bye,
Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.