having these code:
mainLyr = [[CALayer layer] retain]; [mainLyr setFrame:CGRectMake(0.0,0.0,23.0,23.0)];
in debugger, I found that after retatin, the refcount of mainLyr is 2, this is correct. but after setFrame, the refcount increased to 3, why? and how to determine if a method will increase or decrease the refcount (can not find that in reference manual).
Thanks.