• 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
Clarification on Associated Objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification on Associated Objects


  • Subject: Clarification on Associated Objects
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 13 Aug 2010 23:38:19 -0600

Hi everyone,

I'm adding an associated object (an NSMutableArray) to an NSView with a policy of OBJC_ASSOCIATION_RETAIN.  If I'm reading the documentation correctly, I don't have to worry about clearing the associated object when the view is deallocated, because it will be taken care of for me, correct?  Listing 7-1 on the associated objects page of the Objective-C Programming Language guide seems to indicate that this is the case.

So am I good with letting the runtime clean things up, or do I need to take care of cleaning up the array myself at some point during object deallocation?

Thanks,

Dave

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

  • Follow-Ups:
    • Re: Clarification on Associated Objects
      • From: Keary Suska <email@hidden>
  • Prev by Date: va_list customize strings and objects.
  • Next by Date: Recursive file remove
  • Previous by thread: Re: va_list customize strings and objects.
  • Next by thread: Re: Clarification on Associated Objects
  • Index(es):
    • Date
    • Thread