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 <sli...@araelium.com> 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 <david.dun...@apple.com> wrote:
>>> 
>>> What is the identify of your delegate?
>>> 
>>>> On Dec 18, 2013, at 10:51 AM, Seth Willits <sli...@araelium.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to