• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom NSView for Selection Rect...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom NSView for Selection Rect... (From: "Peters, Brandon" <email@hidden>)
 >Re: Custom NSView for Selection Rect... (From: Graham Cox <email@hidden>)
 >Re: Custom NSView for Selection Rect... (From: "Peters, Brandon" <email@hidden>)

  • Prev by Date: Setting the Selected Segment of a Segmented Control
  • Next by Date: Re: Setting the Selected Segment of a Segmented Control
  • Previous by thread: Re: Custom NSView for Selection Rect...
  • Next by thread: Setting the Selected Segment of a Segmented Control
  • Index(es):
    • Date
    • Thread