• 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
Object ownership question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Object ownership question
      • From: Brendan Younger <email@hidden>
    • Re: Object ownership question
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Difficulties with NSWindowController
  • Next by Date: Re: Difficulties with NSWindowController
  • Previous by thread: Re: Difficulties with NSWindowController
  • Next by thread: Re: Object ownership question
  • Index(es):
    • Date
    • Thread