Re: Dissappearing string
Re: Dissappearing string
- Subject: Re: Dissappearing string
- From: Charlie Dickman <email@hidden>
- Date: Wed, 16 May 2012 12:44:02 -0400
The actual problem is that I am telling an NSTextfield to set it's contents (the method is actually a part of NSCell from which NSTextfield inherits it) and it does not appear in the textfield. It used to work but I have no idea what I did to break it.
On May 16, 2012, at 12:59 AM, Graham Cox wrote:
>
> 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
>
>
Charlie Dickman
email@hidden
_______________________________________________
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