• 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
Transforming NSBezierPaths using NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Transforming NSBezierPaths using NSView


  • Subject: Transforming NSBezierPaths using NSView
  • From: Nick Forge <email@hidden>
  • Date: Fri, 23 Feb 2007 02:57:47 +1100

I have an app that allows you to draw ovals (this is the challenge in Hillegass 2nd ed. pg 248) using a subclass of NSView (which I have called MyView). I store the ovals as an NSMutableArray of NSBezierPaths. Is there any way that I can make it so that when I resize my window (and hence myView) the ovals stretch with the window?

Can I somehow use some sort of NSView method to transform the NSBezierPaths to a standard NSView, then transform them to whatever the current window of my myView instance is? Would it be easier to store the ovals as NSRects instead, and do all the transformations on the NSRects instead of the NSBezierPaths?

Thanks in advance,
Nick
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Transforming NSBezierPaths using NSView
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Must remove submenu when dealloccing NSMenuItem?
  • Next by Date: Re: NSObjectController and Core Data
  • Previous by thread: Re: NSXMLParser in background thread crashing
  • Next by thread: Re: Transforming NSBezierPaths using NSView
  • Index(es):
    • Date
    • Thread