NSUserDefaults Bindings Reset

2015-11-01 Thread Michael de Haan 
I have made a test Project to understand resetting UserDefaults. A label’s value is bound to the shared UserDefaults in the UI, and works as expected when the Defaults are updated @IBAction fun changeMeaningOfLife……... let meaning = Int(arc4random() % 99)

Re: AppleScript-ObjC Bridge Question

2015-11-01 Thread Dave
Yes, I was looking at it, but I’m confused how it knows the difference between self and super? e.g. [self init]; and [super init]; I suppose it could check if it’s calling the same method as the one it’s calling from and use super in that case, but it seems strange, do this in Objective-C

Re: AppleScript-ObjC Bridge Question

2015-11-01 Thread Shane Stanley
On 2 Nov 2015, at 12:59 AM, Dave wrote: > > Yes, I was looking at it, but I’m confused how it knows the difference > between self and super? I misread you code. If you really want to do this: -(void) initWithParam:(NSString*) theParam { self = [self