Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-08-2009, 02:23 AM   #1 (permalink)
manicaesar
Registered Member
 
manicaesar's Avatar
 
Join Date: Feb 2009
Location: Poznań, Poland
Age: 25
Posts: 103
manicaesar is on a distinguished road
Wink SKProductsRequest not released ?

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!
manicaesar is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,181
Threads: 93,920
Posts: 402,153
Top Poster: BrianSlick (7,967)
Welcome to our newest member, ayesha25
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:18 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.