Skip navigation.
 
mlRe: Understanding reference count ownership
FROM : j o a r
DATE : Wed May 07 23:47:38 2008

On May 7, 2008, at 2:32 PM, Gregory Seidman wrote:

> I'm just a little unsure of what is handled for me and what I have to
> handle manually. I've already been bitten by autoreleasing stuff 
> that I
> thought I owned, so I'm erring on the side of leaking memory. Of 
> course,
> that's a bad plan for any app and particularly on the iPhone.



The rules are really very straight forward once you spend a little 
time in this environment. Don't worry, you will probably "get it" any 
day now, and after that it's not something you ever have to think 
twice about.

Have a look at the end of this page:

<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_5.html
>

The rules outlined there should answer all of the questions that you 
posted here. If not, please return to the list with a follow up.

j o a r

Related mailsAuthorDate
mlUnderstanding reference count ownership Gregory Seidman May 7, 23:32
mlRe: Understanding reference count ownership Christiaan Hofman May 7, 23:47
mlRe: Understanding reference count ownership j o a r May 7, 23:47
mlRe: Understanding reference count ownership Jim Correia May 7, 23:49
mlRe: Understanding reference count ownership mmalc Crawford May 8, 01:34
mlRe: Understanding reference count ownership Paul Sargent May 8, 15:16
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 15:32
mlRe: Understanding reference count ownership mmalc Crawford May 8, 16:55
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 17:16
mlRe: Understanding reference count ownership j o a r May 8, 17:30
mlRe: Understanding reference count ownership Sherm Pendley May 8, 17:50
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 18:09
mlRe: Understanding reference count ownership Sherm Pendley May 8, 18:28
mlRe: Understanding reference count ownership Christiaan Hofman May 8, 18:48
mlRe: Understanding reference count ownership Sherm Pendley May 8, 19:16
mlRe: Understanding reference count ownership Christiaan Hofman May 10, 17:20
mlRe: Understanding reference count ownership Sherm Pendley May 10, 19:58
mlRe: Understanding reference count ownership Clark Cox May 10, 20:36