• 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
Where is origin transformation in Sketch example?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where is origin transformation in Sketch example?


  • Subject: Where is origin transformation in Sketch example?
  • From: Kevin Spraggs <email@hidden>
  • Date: Wed, 7 Dec 2005 21:13:02 +0000


Evening/Morning/Afternoon* Chaps!

As a progressing newbie to this cocoa and Objective-C business, I have moved from CoreData onto some simple graphics, and I am trying to wrap my brain around Apple's Sketch example on Tiger. I thought that I was progressing well, but I have one current nagging problem with it: Where is the origin transformed from the bottom left to the top left in the SKTGraphicView? I stumbled upon this fact, as I have modified the Sketch example to have a zoom factor using NSView's scaleUnitSquareToSize: method only to find that imported images do not rescale accordingly due to the use of NSImage's compositeToPoint:operation: in the SKTImage class. Replacing this with the drawAtPoint:fromRect:operation:fraction: causes the images to be rescaled correctly, but they then appear up-side-down.

So can any one help me, as I am sure that I am seeing trees, trees and more trees but not the woods...

Thanks in advance,

Kevin.



* please select appropriately for your time zone.


"Kevin knows where it will all end up - where 'Kevin' is any random entity that doesn't know nothin' about nothin'."
- Douglas Adams, Mostly Harmless
_______________________________________________
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
  • Follow-Ups:
    • Re: Where is origin transformation in Sketch example?
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: moveBackward, insertText, etc (from interpretKeyEvents)
  • Next by Date: Re: NSTableHeaderCell Woes...
  • Previous by thread: Re: moveBackward, insertText, etc (from interpretKeyEvents)
  • Next by thread: Re: Where is origin transformation in Sketch example?
  • Index(es):
    • Date
    • Thread