• 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: NSView coordinate System
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView coordinate System


  • Subject: Re: NSView coordinate System
  • From: jean Bousquet <email@hidden>
  • Date: Fri, 20 Sep 2002 14:19:57 +0200

le 20/09/2002 13:02, email@hidden `
email@hidden a icrit :

> Hi,
> I am wanting to get the coordinate system of an NSView to be that (0,0)
> is in the top left corner. In my subclass i have isFlipped return YES,
> but all that does is draw the image upside down. I could not find any
> other info in the docs.
>
> How do I get the (0,0) to be in the top left hand corner of the view?
>
> TIA,
> Greg

isFlipped=YES works for me but I draw only rectangles, lines and text.
Warning : in this case y direction is toward bottom.
If you want to translate origin keeping y direction toward up, try
translateOrigin or setOrigin.

Jean
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: NSRunLoop sample code
  • Next by Date: Re: searching a Unicode string in a text
  • Previous by thread: NSView coordinate System
  • Next by thread: Re: NSView coordinate System
  • Index(es):
    • Date
    • Thread