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

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
References: 
 >Where is origin transformation in Sketch example? (From: Kevin Spraggs <email@hidden>)
 >Re: Where is origin transformation in Sketch example? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Where is origin transformation in Sketch example?
  • Next by Date: [SOLVED] Drag & Drop Launch
  • Previous by thread: Re: Where is origin transformation in Sketch example?
  • Next by thread: [SOLVED] Drag & Drop Launch
  • Index(es):
    • Date
    • Thread