Post

Replies

Boosts

Views

Activity

InApp purchase subscription and Restore
I have a MacApp with a 1 year subscription. I can buy it, the purchase request for the buy shows up. Like this: NSSet *productIdentifiers = [NSSet setWithObject:@"Test"]; productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers]; productsRequest.delegate = self; [productsRequest start]; this should work with the Delegate. If a try to restore the InApp purchased subscription like this:     NSLog(@"Restore Purchase");     productIdentifiers = [NSSet setWithObject:@"Test"];     productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];     [productsRequest setDelegate:self];     [[SKPaymentQueue defaultQueue] addTransactionObserver:self];     [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; } But the paymentQueueRestoreCompletedTransactionsFinished is not called. If i purchase the subscription again it shows me the SKPaymentTransactionStateRestored has been selected. Is this so ok? I think it is a little bit irritating if the Purchase window appears again. Is the Purchase delegate the same as the restore delegate? Rewards from Germany Sven.
0
0
471
Sep ’22
NSSavePanel / NSOpenPanel
The NSSavePanel in a sandboxed app is limited to one file when I enable the User Selected files sandbox entitlements. The same is true for the NSSavePanel. Now the problem is, I am writing an app for an IC Device Programmer (TL866II). Some of the IC's have 3 sections of memory type, a Flash and EEProm and Fuses, so I am supposed to read all three parts at once and then save them to disk. The problem is still that the files have to be separated into a Flash.bin file, an EEProm.bin file and a Fusebit.bin file. To do this I have to open the NSSavePanel 3 times to save each part of the IC data. I have modified a NSOpenPanel to save all 3 parts, but the OK button is only selectable when I have selected a file. I cannot save a new file without selecting a file. Does anyone have an idea to solve this problem. I tried Bookmark Security but it is the same problem, only one file is allowed. Programming electronics software is very hard with sandbox and without sandbox, Apple rejects the software.
0
0
481
Apr ’21