• 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: Cocoa - Naive questions about memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa - Naive questions about memory


  • Subject: Re: Cocoa - Naive questions about memory
  • From: j o a r <email@hidden>
  • Date: Wed, 7 May 2003 07:47:56 +0200

You make it sound like we are explorers, trying to create a chart over the mystical jungles of Cocoa memory management...
Why not just use the available documentation and tutorials written on this topic? I'm sure you [1] can read all the relevant articles in an hour or two if you just commit to it.

<file:///Developer/Documentation/Cocoa/TasksAndConcepts/ ProgrammingTopics/MemoryMgmt/index.html>

<http://www.stepwise.com/StartingPoint/Cocoa.html>
<http://cocoadevcentral.com/articles/000055.php>
<http://cocoadev.com/index.pl?MemoryManagement>

A few brave members of the Cocoa community have spent considerable amounts of time compiling resources to make it easier for you to get up to speed on the more difficult parts of Cocoa programming. It is really frustrating for these guys when questions like this pop up, and their articles isn't even consulted.

j o a r

[1] And by "you" I don't mean you in particular Karl, but rather all new Cocoa developers on this list and elsewhere.

On Wednesday, May 7, 2003, at 00:53 Europe/Stockholm, Karl Goiser wrote:

Here is my naive take on memory:
- if you alloc it, you have to release it.
- otherwise, every retain must be matched by a release
- if you use a Cocoa function that returns a pointer, it has been autoreleased.
I haven't had to look at copy functions yet, so I don't know about them.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Cocoa - Naive questions about memory (From: Karl Goiser <email@hidden>)

  • Prev by Date: Re: NSNetServiceBrowser
  • Next by Date: Re: NSNetServiceBrowser
  • Previous by thread: Re: Cocoa - Naive questions about memory
  • Next by thread: Re: Cocoa - Naive questions about memory
  • Index(es):
    • Date
    • Thread