Hi all,
I have, maybe a silly one, question:
When implementing InAppPurchases feature in my app, I've used sample code from Apple:
Code:
- (void) requestProductData
{
SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers: [NSSet setWithObject: kMyFeatureIdentifier]];
request.delegate = self;
[request start];
}
And the question is: why request object not only is not, but also must not be released? When I added:
Code:
[request autorelease];
problems occured: I stopped receiving responses from AppStore. When I think about now, it is quite obvious, that request object was released before it reached the AppStore.
Is it some kind of gotcha? It is not following the objectiveC convention of alloc <-> release pair. Are there any other places, where we have to omit this convention?
Thanks for any replies!