CALayer retain count
CALayer retain count
- Subject: CALayer retain count
- From: Shaun Larkin <email@hidden>
- Date: Thu, 21 Aug 2008 07:06:48 -0700 (PDT)
Why is it that when you set a CALayer property it's retain count increases +1 ?
eg.
CALayer * testLayer = [[CALayer alloc] init];
NSLog(@"test layer retain count:: %i", [testLayer retainCount]);
testLayer.frame = CGRectMake(0, 0, 30, 30);
NSLog(@"test layer retain count:: %i", [testLayer retainCount]);
First log prints test layer retain count:: 1
Second log prints test layer retain count:: 2
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.
_______________________________________________
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