Re: Using CFSTR() with const char * variable

2015-06-07 Thread Jean-Daniel Dupas
That’s not going to work. __builtin___CFStringMakeConstantString is a special compiler function that requires a constant string to work in the first place, as it tells the compiler to generate CFString literal. I doubt the compiler will accept anything else as parameter. > Le 7 juin 2015 à 03

SKPaymentTransaction, and Receipt on OS X

2015-06-07 Thread Trygve Inda
In my delegate: -(void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions I call: (to make sure we are on the main thread): case SKPaymentTransactionStatePurchased: [self performSelectorOnMainThread:@selector(completeTransaction:) withObject:transact

Re: why is this Swift initializer legal

2015-06-07 Thread Roland King
> On 8 Jun 2015, at 06:14, Greg Parker wrote: > > >> On Jun 6, 2015, at 2:43 AM, Roland King wrote: >> >> >> >> public class RDKBLEService : NSObject >> { >> let peripheral : CBPeripheral >> >> public init( peripheral: CBPeripheral ) >> { >> self.peripheral = pe

Re: why is this Swift initializer legal

2015-06-07 Thread Greg Parker
> On Jun 6, 2015, at 2:43 AM, Roland King wrote: > > > > public class RDKBLEService : NSObject > { > let peripheral : CBPeripheral > > public init( peripheral: CBPeripheral ) > { > self.peripheral = peripheral > } > } > > It’s a designated initialiser, t