Re: Custom NSImageView
Re: Custom NSImageView
- Subject: Re: Custom NSImageView
- From: Lee Morgan <email@hidden>
- Date: Fri, 30 Dec 2005 01:09:34 -0500
Well, assuming your target is Tiger or newer....
This seems a prime candidate for Core Image (http://
developer.apple.com/macosx/coreimage.html)
With Core Image you should only have to worry about setting it up -
like mapping functions to key / mouse combinations.
Scaling, rotation, cropping, and a ton of others you get "for free."
"Do not worry about your difficulties in Mathematics. I can assure
you mine are still greater."
- Albert Einstein
On Dec 30, 2005, at 12:48 AM, Robert Walker wrote:
I have been attempting to create an NSImageView subclass with the
following custom features:
1: Magnifying Glass zoom mode
Ability to zoom using a "magnifying glass" style tool. Tool
should work similar to Photoshop.
a) Click to zoom at a point using a fixed scale value (Option-
click to zoom out).
b) Zoom by dragging a selection window. Zoom to fit view on mouse
up event.
2: Hand Tool pan mode
Ability to drag the image's within the view using a mouse drag.
3: Rotation
Ability to rotate the image within the view.
a) 90 deg. rotation is required.
b) Free rotation is a plus.
4: Keyboard control of zoom and pan
Ability to perform basic zoom and pan using keyboard shortcuts. I
have a pretty decent grasp of this and
can add the feature myself if necessary.
5: Mouse cursors
It would also be great to have the mouse cursor change depending
on the selected tool (Magnifying Glass or Hand icons)
I realize that this must seem pretty basic, but I'm just getting
started with Cocoa and would like to move this project along. I
had hoped to have the time to figure all this stuff out myself, but
I'd really like to get going with some of the more interesting
features of my application. This has been bogging me down.
I'm sure that someone out there has already built exactly what I
need, so if you're willing to share your class, or direct me on how
to build what I need, I would appreciate it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden