I hereby claim:
- I am ddeville on github.
- I am ddeville (https://keybase.io/ddeville) on keybase.
- I have a public key ASDmES-E7HI6XQtpt82tRK2_gSj34to_05USfnddUUlorwo
To claim this, I am signing this object:
#if TARGET_OS_IPHONE | |
#import <MobileCoreServices/MobileCoreServices.h> | |
#else | |
#import <CoreServices/CoreServices.h> | |
#endif | |
/* | |
MIME type to UTI | |
*/ | |
NSURLResponse *response = ... // assume a URL response from somewhere else. |
rax - accumulator | |
rbx - base | |
rcx - count | |
rdx - data | |
r8-15 | |
rsi - source index | |
rdi - destination index | |
rbp - base pointer |
tell application "Safari" | |
set current_tab to current tab of front window | |
set tab_title to name of current_tab | |
set tab_address to URL of current_tab | |
tell application "Spillo" | |
show create bookmark panel with properties {url:tab_address, title:tab_title} | |
end tell | |
end tell |
I hereby claim:
To claim this, I am signing this object:
tell application "Safari" | |
set current_tabs to tabs of front window | |
repeat with current_tab in current_tabs | |
set tab_title to name of current_tab | |
set tab_address to URL of current_tab | |
tell application "Spillo" | |
make new bookmark with properties {url:tab_address, title:tab_title} | |
end tell |
// | |
// main.m | |
// KVO | |
// | |
// Created by Damien DeVille on 10/26/13. | |
// Copyright (c) 2013 Damien DeVille. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
// | |
// main.m | |
// KVO | |
// | |
// Created by Damien DeVille on 10/26/13. | |
// Copyright (c) 2013 Damien DeVille. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
@interface ParentViewController : NSViewController | |
@property (strong, nonatomic) FirstChildViewController *firstViewController; | |
@property (strong, nonatomic) SecondChildViewController *secondViewController; | |
@end | |
@implementation ParentViewController |
// | |
// main.m | |
// KVO | |
// | |
// Created by Damien DeVille on 10/22/13. | |
// Copyright (c) 2013 Damien DeVille. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
So: | |
id boxedValue = objc_msgSend(self, mappingSelector, instance, value, boxingParameters); | |
would become: | |
id boxedValue = ((id (*)(id, SEL, id, id, id))objc_msgSend)(self, mappingSelector, instance, value, boxingParameters); | |
The first `id` and `SEL` are basically `self` and `_cmd`, the first 2 arguments in any objc_msgSend. |