• 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: Changing the NSView bounds origin point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the NSView bounds origin point


  • Subject: Re: Changing the NSView bounds origin point
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 29 Oct 2009 14:42:18 -0700


On Oct 29, 2009, at 2:37 PM, Gustavo Pizano wrote:

I have a custom NSView and Im drawing in it a glossy background, BUT it seems the algorithm that Im using assumes as coordinates origin to be on the upper left corner and the nsview origin start on the bottom left corner. Is there any work around this?

Use flipped coordinates. (Look up "flipped" in the Cocoa docs.)

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >Changing the NSView bounds origin point (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Changing the NSView bounds origin point
  • Next by Date: Re: Changing the NSView bounds origin point
  • Previous by thread: Changing the NSView bounds origin point
  • Next by thread: Re: Changing the NSView bounds origin point
  • Index(es):
    • Date
    • Thread