• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSView puzzle (From: DKJ <email@hidden>)
 >Re: NSView puzzle (From: Andy Lee <email@hidden>)
 >Re: NSView puzzle (From: DKJ <email@hidden>)

  • Prev by Date: Re: NSView puzzle
  • Next by Date: Re: NSView puzzle
  • Previous by thread: Re: NSView puzzle
  • Next by thread: Re: NSView puzzle
  • Index(es):
    • Date
    • Thread