• 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
CATiledLayer synchronization problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATiledLayer synchronization problem


  • Subject: CATiledLayer synchronization problem
  • From: Raphael Sebbe <email@hidden>
  • Date: Fri, 27 Feb 2009 14:24:17 +0100

Hi the list,
Using CATiledLayer lately, which works great except for one thing.



:::Main Thread:::
[tiledLayer setNeedsDisplay]
[model change]
[tiledLayer setNeedsDisplay];  // not all tiles have been drawn at this
point

:::Tiled Layer Thread:::
[delegate drawLayer...]




Invoking second setNeedsDisplay marks all the tiles as dirty except the one
being drawn at that time. I believe this is not a correct behavior in
CATiledLayer. Or is it, but please explain?
I made the [delegate drawLayer:...] and the [model change] atomic, but this
is not sufficient to get it right all the time (synchronization should be in
the callers).

What I sometimes get is one of the tiles that is not correctly drawn. (and
no way of redrawing only that one)

Any thought on this?

Thank you,

Raphael
_______________________________________________

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: Cocoa Document-based Application Template
  • Next by Date: Re: renaming a file with special/reserved characters in name
  • Previous by thread: Re: Possible blunder with CALayers
  • Next by thread: Negative zero and NSNumberFormatter
  • Index(es):
    • Date
    • Thread