Skip to content

Instantly share code, notes, and snippets.

View Rm1210's full-sized avatar
🏠
Working from home

Rm1210 Rm1210

🏠
Working from home
  • Guangzhou, China
View GitHub Profile
天涯论坛审查得厉害啊。无法发帖,搬来这里。
这是公共github帐号,本文很有可能被他人删除。如果你觉得本文有道理,欢迎保存或转载到其他论坛,当作备份。
正在考虑低成本移民,这是我找到的关于厄瓜多尔的情况,若有不实烦请指正。
具体法律、规定请找当地律师咨询。我搜集到的资料不一定正确,可能人云亦云,还可能过时。
厄瓜多尔:
1.优点:
1.1.移民门槛低
十几万身家?可以。大学毕业?可以。后面会说到。
#import <Cocoa/Cocoa.h>
@protocol ContextMenuDelegate <NSObject>
- (NSMenu*)tableView:(NSTableView*)aTableView menuForRows:(NSIndexSet*)rows;
@end
@interface NSTableView (ContextMenu)
@end
@Rm1210
Rm1210 / NSImage+Rotated.h
Created April 14, 2014 06:39
rotate a NSImage
#import <Cocoa/Cocoa.h>
@interface NSImage (Rotated)
- (NSImage *)imageRotated:(float)degrees;
- (CGImageRef)toCGImageRef;
@end
@Rm1210
Rm1210 / someChange.m
Last active December 24, 2015 01:49
Change IKImageBrowserView Title & Subtitle
// With attributes you can set the text alignment, line break mode, font, color...
NSMutableParagraphStyle *paragraphStyle = [[[NSMutableParagraphStyle alloc] init] autorelease];
[paragraphStyle setLineBreakMode:NSLineBreakByTruncatingTail];
[paragraphStyle setAlignment:NSCenterTextAlignment];
NSMutableDictionary *attributes = [[NSMutableDictionary alloc] initWithCapacity:3];
[attributes setObject:[NSFont fontWithName:@"Lucida Grande" size:12] forKey:NSFontAttributeName];
[attributes setObject:paragraphStyle forKey:NSParagraphStyleAttributeName];
@Rm1210
Rm1210 / NSButton+Extended.h
Created September 27, 2013 02:04
Apple's set NSButton TextColor Extended
#import <Foundation/Foundation.h>
@interface NSButton (NSButton_Extended)
- (NSColor *)textColor;
- (void)setTextColor:(NSColor *)textColor;
@end