Setting a frame on a CALayer increments its retain count!?
Setting a frame on a CALayer increments its retain count!?
- Subject: Setting a frame on a CALayer increments its retain count!?
- From: Tino Rachui <email@hidden>
- Date: Tue, 15 Dec 2009 07:39:17 +0100
This puzzles me a bit:
...
NSUInteger rc;
CALayer *layer = [CALayer layer];
rc = [layer retainCount];
// rc == 1 as expected
layer.frame = CGRectMake(...);
rc = [layer retainCount];
// now rc == 2, it's not clear to me why
...
Why does setting a frame on the layer increments its retain count?
What am I missing?
TIA,
Tino
_______________________________________________
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