• 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: Shawn Erickson <email@hidden>
  • Date: Wed, 7 Dec 2005 13:23:08 -0800

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

  • Follow-Ups:
    • Re: Where is origin transformation in Sketch example?
      • From: Kevin Spraggs <email@hidden>
References: 
 >Where is origin transformation in Sketch example? (From: Kevin Spraggs <email@hidden>)

  • Prev by Date: Re: NSTableHeaderCell Woes...
  • Next by Date: Re: Where is origin transformation in Sketch example?
  • Previous by thread: Where is origin transformation in Sketch example?
  • Next by thread: Re: Where is origin transformation in Sketch example?
  • Index(es):
    • Date
    • Thread