Re: Dissappearing string
Re: Dissappearing string
- Subject: Re: Dissappearing string
- From: Graham Cox <email@hidden>
- Date: Wed, 16 May 2012 14:59:13 +1000
On 15/05/2012, at 11:38 AM, Charlie Dickman wrote:
> Note that the retainCount has changed in the first case but not in the second.
> Does anyone have any ideas as to what is happening?
No, but relying on, peeking at or otherwise taking any notice of retain counts is a sure path to madness.
All you need to do is follow the ownership rules and forget about what the actual retain count is, especially for a complex object like NSAttributedString.
WHat is the actual problem you're trying to solve?
--Graham
_______________________________________________
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