• 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 not flipping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView not flipping


  • Subject: Re: NSView not flipping
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 24 Mar 2003 12:37:30 +0100

On Monday, March 24, 2003, at 12:21 PM, <email@hidden> wrote:

I'm pretty sure that flipping the Graphic Context of a view can't
change the way the widgets are located.

Maybe what you can do to find a solution is to overwrite the drawRect:
method of your NSView and NSTextView to draw a red frame instead so
that you can see where the widgets are located.

Well I've already done the next best thing - I colored the scrollview red.
Thats how I know the NSView and the NSTextView are in the lower-left corner.
But am I missing the point? Isn't this why you can flip views, so that
their contents are laid out from the top-left corner?

AFAIK, flipping is not going to influence the way the subviews are located, just the Graphic Context for the view when drawRect: is called.
_______________________________________________
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: Does anyone have OpenStep 4.2?
  • Next by Date: Re: creating a window
  • Previous by thread: Re: Does anyone have OpenStep 4.2?
  • Next by thread: Thread, priority etc.
  • Index(es):
    • Date
    • Thread