• 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: display a section of view zoomed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display a section of view zoomed


  • Subject: Re: display a section of view zoomed
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 23 Mar 2012 18:30:18 -0700

On Mar 23, 2012, at 6:05 PM, Timothy Reaves wrote:

> I have a subclass of NSView, and draw into using CoreGraphics.  I'd like to
> add a second view (not NSScrollView) to display a zoomed section of the
> primary view.

You’ll need a second instance of the same view class, displaying the same model. Make its bounds rect smaller than its frame, and the contents will be scaled up by the same proportion when drawn.

—Jens


_______________________________________________

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: 
 >display a section of view zoomed (From: Timothy Reaves <email@hidden>)

  • Prev by Date: display a section of view zoomed
  • Next by Date: syslog with strings?
  • Previous by thread: display a section of view zoomed
  • Next by thread: syslog with strings?
  • Index(es):
    • Date
    • Thread