• 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: Co-ordinate systems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Co-ordinate systems


  • Subject: Re: Co-ordinate systems
  • From: Thomas Davie <email@hidden>
  • Date: Sat, 29 Jul 2006 20:45:06 +0100

It's actually turned out that what I needed was NSLayoutManager, but thanks for the response, that would work too... but require me to do more work than I need do now.

Bob

On 29 Jul 2006, at 17:35, Jakob Olesen wrote:


On 29/07/2006, at 18.10, Thomas Davie wrote:

Basically, I only know how big my view is, once I've already positioned everything in it. I create a series of subviews at different vertical positions, and once I've finished, I know the total height they take up and set the view height accordingly. The problem is, the coordinate system appears to be based at the bottom left of the view, meaning that if I take this approach everything comes out upside down.


The obvious solution is to simply suptract my calculated position from the height of the view, but that's obviously not possible because I don't know the height until I've positioned everything.

Anyone got any ideas?

-[NSView isFlipped] was made for people like you. Override it to return YES.







_______________________________________________ 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: 
 >Co-ordinate systems (From: Thomas Davie <email@hidden>)
 >Re: Co-ordinate systems (From: Jakob Olesen <email@hidden>)

  • Prev by Date: Re: What is the fastest way to find all files associated with particular application?
  • Next by Date: setNextResponder confusion redux
  • Previous by thread: Re: Co-ordinate systems
  • Next by thread: NStableView and delegate to heightOfRow
  • Index(es):
    • Date
    • Thread