• 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
Help reading cocoa docs - finding info about return objects and autorelease / memory management.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help reading cocoa docs - finding info about return objects and autorelease / memory management.


  • Subject: Help reading cocoa docs - finding info about return objects and autorelease / memory management.
  • From: "aaron smith" <email@hidden>
  • Date: Thu, 11 Dec 2008 16:13:00 -0800

Hey All,

Quick question, what is the best way to determine what kind of cleanup
I need to do with objects that were returned from other objects'
methods, or class methods.

For example, the NSTextField has a method called (NSString
*)stringValue - which returns a string of the value in the text box.
how do I know if that NSString will have a retain count of 1 when
returned to me, or if it was autoreleased before being returned to me.

Beyond just that example, is there any other cheat sheets, or more
documentation in the cocoa docs about those types of concerns?

Thanks.
_______________________________________________

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: Help reading cocoa docs - finding info about return objects and autorelease / memory management.
      • From: Wyatt Webb <email@hidden>
  • Prev by Date: Re: Core Data warning: to-many relation does not have an inverse
  • Next by Date: Re: Help reading cocoa docs - finding info about return objects and autorelease / memory management.
  • Previous by thread: Re: Announce the time every 30 minutes
  • Next by thread: Re: Help reading cocoa docs - finding info about return objects and autorelease / memory management.
  • Index(es):
    • Date
    • Thread