Re: Where is origin transformation in Sketch example?
Re: Where is origin transformation in Sketch example?
- Subject: Re: Where is origin transformation in Sketch example?
- From: Kevin Spraggs <email@hidden>
- Date: Wed, 7 Dec 2005 21:43:06 +0000
Once again the answer was sooo simple!
Thank you, Shawn, especially for the swiftness of your answer - I've
been staring and staring at this for days (on and off).
Cheers,
Kevin.
"All problems are soluble in beer."
On 7 Dec 2005, at 21:23, Shawn Erickson wrote:
On 12/7/05, Kevin Spraggs <email@hidden> wrote:
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.
- (BOOL)isFlipped {
return YES;
}
-Shawn
_______________________________________________
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