• 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: Oscar Morales Vivó <email@hidden>
  • Date: Wed, 7 May 2003 12:14:26 +0200

- if you use a Cocoa function that returns a pointer, it has been autoreleased.

That's only for 'factory methods' (usually '+' methods but not always). If an object returns an already existing object then no autorelease will be made on it (you can retain/release it, obviously).


/*
Oscar Morales Vivs

Eternal Computer Science Student. Master of C++ Templates. Cocoa Nut. Computer Graphics Illuminati. UI Guru in Training. Dabbler in all things CS and most which are not.

Web stuff: http://homepage.mac.com/oscarmv/
*/
_______________________________________________
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: NSTableView dummy question
  • Next by Date: Re: Memory Management Mismanaged
  • Previous by thread: Re: Cocoa - Naive questions about memory
  • Next by thread: Does File System Event Exist?
  • Index(es):
    • Date
    • Thread