If I create and use some Objective-C classes in an __attribute__((constructor)) function and they potentially create some auto-released objects, is it safe to put an @autorelease block around this code in the constructor function even though this will be called before main?
If I create and use some Objective-C classes in an __attribute__((constructor)) function and they
Share
To my understanding,
main()‘s@autoreleaseblock isn’t in any way more special than the ones in any other part of the code, so I don’t see why it shouldn’t work.