On Jun 27, 2008, at 4:22 PM, Paul Archibald wrote:
I am reading the Hillegass book, but I don't really see an example of what I am tryng to do, although it seems like a very basic question.
[...]
But, as I have been trying to make an exhaustive test of what "works" and what "crashes", I realize that just experimenting with this is not enough, and I need a better theoretical understanding of this stuff.

Programming by guesswork is a recipe for programs that don't work and are unmaintainable. And memory management is an especially bad topic to guess about.

The Hillegass book is actually *full* of examples of what you're trying to do, which is create and use an object. Find the section that explains retain and release and study it again. In the latest edition it's around page 46.

If you recognize this pattern and can tell me where to read more on it, that would be great, too.

Start here:

<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/index.html >

--Andy

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to