Re: NSView puzzle
Re: NSView puzzle
- Subject: Re: NSView puzzle
- From: Bill Bumgarner <email@hidden>
- Date: Thu, 09 Oct 2008 14:38:56 -0700
On Oct 9, 2008, at 2:30 PM, DKJ wrote:
On 9 Oct, 2008, at 13:27, Andy Lee wrote:
Are you retaining str when the view is initialized?
No, since it was set as:
str = @"x";
But your question made the penny drop: it was dict that needed
retaining. All works well now.
You should still retain that string... yes, constant strings implement
-retain/-release/-autorelease as no-ops, but that doesn't mean that
you should violate the [simple] rules of retain/release in this case.
b.bum
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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