Re: CALayer's delegate prevents implicit animation?
Re: CALayer's delegate prevents implicit animation?
- Subject: Re: CALayer's delegate prevents implicit animation?
- From: Sean McBride <email@hidden>
- Date: Wed, 18 Dec 2013 15:46:16 -0500
- Organization: Rogue Research Inc.
Wait, what? You're saying a CALayer's delegate can't be its parent NSView? Why? Where does it say that? I've been doing that for years without apparent problem. I'd be interested to hear more...
Sean
On Wed, 18 Dec 2013 12:39:12 -0800, Cody Garvin said:
>Yah you can't make the parent view of the layer the delegate. Nasty
>things can happen. One of my interview questions I ask :)
>
>Please excuse mobile typos
>
>> On Dec 18, 2013, at 11:50 AM, Seth Willits <email@hidden> wrote:
>>
>>
>> Oooohhhhhhhh… Yeah, it's an NSView which I imagine is the problem.
>Documenting this behavior would be very useful.
>>
>> My entire app is one view, with zillions of layers in it, so I have
>the view as the master coordinator for everything. Since it knows about
>various views and their layout relationships, I set it as the delegate
>for a few layers because of the access it already has to needed info.
>>
>> It's easy enough to work around this case though.
>>
>>
>> --
>> Seth Willits
>>
>>
>>
>>> On Dec 18, 2013, at 11:13 AM, David Duncan <email@hidden> wrote:
>>>
>>> What is the identify of your delegate?
>>>
>>>> On Dec 18, 2013, at 10:51 AM, Seth Willits <email@hidden> wrote:
>>>>
>>>> Short version:
>>>>
>>>> In 10.9 only: My CALayer's delegate doesn't implement **any**
>delegate methods, but because a delegate is set, the layer's position
>will not implicitly animate. If I don't set it, it works fine.
_______________________________________________
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