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
3tothe...@comcast.net



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to