• 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: Transparent window and opaque objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent window and opaque objects


  • Subject: Re: Transparent window and opaque objects
  • From: Erik Buck <email@hidden>
  • Date: Thu, 25 Oct 2007 09:04:26 -0700 (PDT)

The OS doesn't draw objects.  Objects draw objects.  Cocoa is not technically part of any operating system.

  You can not make any assumptions about the order in which sibling views will be drawn in Tiger or previous Cocoa versions.  It is that simple.  The documentation passage you quote says quite explicitly, "but this does not imply invalidation and drawing behavior."

  Would you be happier if the subviews were stored in an unordered set instead of an array ?  Why does the implementation detail (that an array is used) cause you to draw conclusions about totally unrelated behavior ?

  The documentation also says: "Note: For performance reasons, Cocoa does not enforce clipping among sibling views or guarantee correct invalidation and drawing behavior
when sibling views overlap. If you want a view to be drawn in front of  another view, you should make the front view a subview (or descendant)  of the rear view."

  http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/WorkingWithAViewHierarchy/chapter_4_section_5.html

_______________________________________________

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

  • Prev by Date: Re: Object specific behavior?
  • Next by Date: Re: Output to the XCode console
  • Previous by thread: Re: Transparent window and opaque objects
  • Next by thread: Activating Quit Menu with a Modal Window
  • Index(es):
    • Date
    • Thread