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

CALayer weirdness


  • Subject: CALayer weirdness
  • From: Francois-Jean De Brienne <email@hidden>
  • Date: Sat, 08 Mar 2008 00:34:28 -0500

I have an NSView which has a CALayer (we will call parent). "parent" seems to work fine, since whenever I draw in it, the results are displayed.

This parent CALayer instanciates a number of child CALayers which are actually of a class I created (that derives from CALayer). These child CALayers implement the drawInContext method.

Whenever parent is redrawn, I can briefly see the result of the children's drawInContext method. However, a fraction of a second later, this disappears.

ex. 1: If parent draws nothing, I see the children's drawInContext result flash briefly and return to blank.

ex. 2: If parent draws something, I see parent's draw results, followed by a brief flash of the children's draw result, finally replaced by the parent's draw results.

I'm quite sure nothing else in my code draws over parent, since ex. 2's end result would be the same as ex. 1 end result. Could it be that when parent is not drawing something, it's NSView draws over it? I wouldn't think so.

Any ideas?

_______________________________________________

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: NSTableViews, NSArraycontrollers and table selection question
  • Next by Date: Re: best time to alter GUIs
  • Previous by thread: NSTableViews, NSArraycontrollers and table selection question
  • Next by thread: [Moderator] No iPhone SDK discussion here please
  • Index(es):
    • Date
    • Thread