• 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 maybe silly question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer maybe silly question


  • Subject: CALayer maybe silly question
  • From: vincent habchi <email@hidden>
  • Date: Mon, 25 Jan 2010 21:02:12 +0100

Hi again,

the silly question is this: is it possible to redraw a CALayer in background?

More specifically, I've written a delegate method drawLayer:inContext: that creates a thread that does the drawing then returns.

Net result, when I do that, is void. The screen is blank, I think because nothing in drawn when the image is composited. So, is there a way to make the drawing appear when the thread has accomplished its job? I tried to put a [[layer superlayer] setNeedsDisplay] at the end of the threaded routine, the drawing appears but vanishes at once.

Any clue?
Thanks
Vincent


_______________________________________________

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

  • Follow-Ups:
    • Re: CALayer maybe silly question
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: How to hide dock item and application menu?
  • Next by Date: Fastest way to convert an NSDate into an NSString
  • Previous by thread: Re: dynamic typing in a text field
  • Next by thread: Re: CALayer maybe silly question
  • Index(es):
    • Date
    • Thread