Custom NSImageView
Custom NSImageView
- Subject: Custom NSImageView
- From: Robert Walker <email@hidden>
- Date: Fri, 30 Dec 2005 00:48:07 -0500
Hi all,
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.
--
Robert Walker
email@hidden
There are 10 types of people in the world, those who count in binary,
and those who don't.
_______________________________________________
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