Re: Custom NSView for Selection Rect...
Re: Custom NSView for Selection Rect...
- Subject: Re: Custom NSView for Selection Rect...
- From: Graham Cox <email@hidden>
- Date: Wed, 15 Oct 2014 12:37:08 +1100
On 15 Oct 2014, at 11:42 am, Peters, Brandon <email@hidden> wrote:
> Graham,
>
> I will look into your suggestion. Also, I want the ability to draw the selection box “outside” of the image, similar to what the Preview application allows.
I think there probably isn't one "best" way to do this, it depends on your other requirements, and how you've implemented them.
Your content view might include both its content and parts of the background that surround it, or you might have different views that create this situation. Your content might be zoomable and you don't want the selection to zoom with it, or you do; in different cases different solutions will be easiest. A separate view that overlays the selection rect might well be a good solution in some cases, or maybe a transparent overlay view that covers your entire document but only draws the selection rect somewhere inside that. Each approach has its merits and drawbacks.
--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