27
2017
09

Keypath for any element in embedded NSArray

@interface NSArray (SubscriptKey) @end @implementation NSArray (SubscriptKey) - (id)valueForUndefinedKey:(NSString *)key {     if ([key isEqualToString:@"size"]) { &
27
2017
09

Mac OSX 下 MacPorts 环境,编译OpenWrt

sudo port install 所有差的库,只有openssl 安装了还要提示下面的错误:Please install the openssl library (with development headers)解决方案如下:找到 OpenWrt/include/host-build.mkifeq ($(HOST_OS),Darwin)   HOST_CFLAGS += -I/usr/local/opt/openssl/include &