• 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: Should objects returned by indirection be autoreleased
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should objects returned by indirection be autoreleased


  • Subject: Re: Should objects returned by indirection be autoreleased
  • From: Lon Giese <email@hidden>
  • Date: Thu, 11 May 2006 17:54:41 -0700



Any object you get is auto released unless you create it with an init... method or a copy method... there is at least one obsure contradiction to this rule but it is documented... the answer to your question is yes...

I wish somebody would answer my question.

On May 11, 2006, at 5:15 PM, Eric wrote:

For example, this NSFormatter method:

- (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string
errorDescription:(NSString **)error

Should the two indirectly returned objects (anObject and error) be
autoreleased? In other word, if I get an object from any method other than
alloc, etc., no matter how it's returned, it should be autoreleased,
correct?


Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Should objects returned by indirection be autoreleased
      • From: mmalcolm crawford <email@hidden>
References: 
 >Should objects returned by indirection be autoreleased (From: Eric <email@hidden>)

  • Prev by Date: Re: Newbie OOP style question
  • Next by Date: Re: Newbie OOP style question
  • Previous by thread: Should objects returned by indirection be autoreleased
  • Next by thread: Re: Should objects returned by indirection be autoreleased
  • Index(es):
    • Date
    • Thread