Object ownership question
Object ownership question
- Subject: Object ownership question
- From: Hisaoki Nishida <email@hidden>
- Date: Mon, 18 Jun 2001 22:58:40 -0400
Hi,
I am very new to Cocoa programming (and programming in general; only
about a year of experience) and I've been reading O'reilly's Learning
Cocoa book (up to about 140 pages). I've been following tutorials to
create simple apps, trying to understand every code. However, there are
a few things I cannot quite understand, and one of them is about object
ownership.
I am almost completely clueless about when I am suppose to invoke
release/autorelease/retain methods to objects. I've read pages 91-97 in
the book, where it explains about object ownership, but it doesn't
really help (the explanations and examples they present seem very
complicated to me).
If anyone can explain to me how this works, or point me to some good
documentation about it, I'd be very happy.
Thanks,
Hisaoki N.