• 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: How do I get CAScrollLayer to draw its sublayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get CAScrollLayer to draw its sublayers


  • Subject: Re: How do I get CAScrollLayer to draw its sublayers
  • From: Bill Dudney <email@hidden>
  • Date: Mon, 22 Sep 2008 06:27:11 -0600

Hi Cesar,

I had more luck getting rid of the scroll layer and using a 'normal layer'.

http://bill.dudney.net/roller/objc/entry/catiledlayer_example

Has a full example of doing the tiled layer stuff with a PDF.

My book has an example on doing the tiled layer stuff with tiled jpg files;

http://www.pragprog.com/titles/bdcora

Good luck!

-bd-

On Sep 21, 2008, at 4:39 PM, Cesar Alaniz wrote:

I have set up a CAScrollLayer with one sublayer, in this case a CATiledLayer. The documentation say's that CATiledLayer will call drawLayer:(CALayer*)layer inContext:(CGContextRef) ref as the layer is needed to be drawn. I cannot see this method being called currently. My CAScrollLayer, the superlayer has setNeedsDisplayOnBoundsChange set to YES and a delegate set to draw the content. The delegate method drawLayer inContext for the scroll layer is being called. Do i need to do something special to make it redraw CATiledLayer's layer?

Thanks,
Cesar
_______________________________________________

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

_______________________________________________

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


References: 
 >How do I get CAScrollLayer to draw its sublayers (From: Cesar Alaniz <email@hidden>)

  • Prev by Date: how to tell if my app is visible.
  • Next by Date: Re: how to tell if my app is visible.
  • Previous by thread: How do I get CAScrollLayer to draw its sublayers
  • Next by thread: Re: How do I get CAScrollLayer to draw its sublayers
  • Index(es):
    • Date
    • Thread