• 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: NSBezierPath (again) and region subtraction.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath (again) and region subtraction.


  • Subject: Re: NSBezierPath (again) and region subtraction.
  • From: Brian Webster <email@hidden>
  • Date: Tue, 2 Jul 2002 14:06:00 -0500

On Tuesday, July 2, 2002, at 12:36 PM, cocoa-dev-
email@hidden wrote:

Question 2:

Whilst I have the stage, how can you force a NSView to the top
of the stacking order? (Like XRaiseWindow in X11 speak). If I
removeFromSuperview and then addSubview to put it back - it has
the desired effect, except Cocoa decides it wants to redraw everything
in site. (I tried removeFromSuperviewWithoutNeedingDisplay but that doesnt
seem to have the desired effect). It would seem like a nice
idea to alter the Z-level stacking order without having to
remove and put back the view. Any ideas?

The official stance is that NSView does not support overlapping views. Any views with the same superview that have overlapping frames will be drawn in an undefined order. It's true that they happen to be drawn in the order they are added to the superview, but that is an implementation detail and is subject to change. If you need to be able to have elements draw in a specific order, you should draw them all within the same view instead of using subviews.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSBezierPath (again) and region subtraction.
      • From: Lance Bland <email@hidden>
  • Prev by Date: Re: Deleting contents of NSTextView...
  • Next by Date: Re: NSBezierPath (again) and region subtraction.
  • Previous by thread: Re: NSBezierPath (again) and region subtraction.
  • Next by thread: Re: NSBezierPath (again) and region subtraction.
  • Index(es):
    • Date
    • Thread