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

Re: CALayer resizing puzzle


  • Subject: Re: CALayer resizing puzzle
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 22 Jan 2010 01:32:56 -0500

this specific example of course assumes that you’re using the iphone. But, the technique should be sound for what you’re trying to do.

The technique is applicable to use a pool of multiple views to contain smaller amounts of the content. the advantage is that you can render or fetch the content that is visible (or could be next) only when required. As you show new content relocate the views, create the layers (which you could do in the reusable pool) and the set the content. Then move the no longer visible layers back to the pool, clearing the content to save space.




On Jan 21, 2010, at 10:38 PM, Scott Anguish wrote:

> look at the ScrollViewSuite example.. specifically the tiling one. techniques illustrated.
>
>
> On Jan 21, 2010, at 12:39 PM, vincent habchi wrote:
>
>> Hi to all,
>>
>> I'm trying to write a (at that time) simple GIS-like application based on Cocoa. For each cartographic layer, I use a CALayer object, which is nice to control things like opacity in real-time.
>>
>> However, I'm facing a challenge: when the user move the mouse, the drawing must move accordingly, feeling in white spaces that appear when updating the position property. However, to feel in those spaces, the app must be able to draw on it, thus the layer shall be resizable in every four direction, including left and below, while maintaining the existing drawing unchanged. I've tried to move the anchor point around and modify bounds or frame, but to no avail: or I get no extension, or I have a transitory motion corresponding to a bound property change (is there a way to disable the implied CASimpleAnimation?). So, put briefly, is there a way to extend a CALayer in whatever direction while keeping its content unmoving?
>>
>> 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
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: CALayer resizing puzzle
      • From: vincent habchi <email@hidden>
References: 
 >CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: NSTabViewDelegate
  • Next by Date: Re: CALayer resizing puzzle
  • Previous by thread: Re: CALayer resizing puzzle
  • Next by thread: Re: CALayer resizing puzzle
  • Index(es):
    • Date
    • Thread