iCulture forum | iPhone, iPad,  iPod touch, Apple TV en iOS

iCulture forum | iPhone, iPad, iPod touch, Apple TV en iOS (https://forum.iculture.nl/)
-   Ontwikkelen voor iOS (https://forum.iculture.nl/f133/development/f58/ontwikkelen-voor-ios/)
-   -   Garbage collection in iphoneos? (https://forum.iculture.nl/f133/development/f58/ontwikkelen-voor-ios/21646-garbage-collection-iphoneos.html)

Thaurin 15-09-08 18:04

Garbage collection in iphoneos?
 
Ik vroeg me af toen ik wat cocoa documenten aan het doorlezen was: doet de iPhone wel aan garbage collection of is dat alleen aanwezig in de desktop sdk? Ik hoorde namelijk hier iemand zeggen dat de iPhone run-time geen garbage collect.

Is dit waar?

Thaurin 16-09-08 09:22

Verschillende websites vertellen me dat iPhone inderdaad geen garbage collection ondersteund. Wat onderwets. ;)

No garbage collection.
Creating an iPhone Application:
Note: iPhone OS does not support memory management using the garbage collection feature that is in Mac OS X v10.5 and later.
Garbage Collection: The iPhone SDk does not currently support garbage collection unlike the SDK for normal Mac OSX applications where it is an option. This is not too horrible, but it does require you to be VERY careful with memory allocation. Using the SDK reminded me more of developing in C++ than C#.


Alle tijden zijn GMT +2. Het is nu 16:59.