V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
dazuiba
V2EX  ›  iDev

用macros简化Objective-C开发: ConciseKit

  •  
  •   dazuiba ·
    dazuiba · Mar 30, 2012 · 5753 views
    This topic created in 5142 days ago, the information mentioned may be changed or developed.
    ConciseKit:

    https://github.com/petejkim/ConciseKit


    简介:

    NSArray
    > $arr(foo, bar) => [NSArray arrayWithObjects:foo, bar, nil]
    [array $eachWithIndex:^(id obj, NSUInteger i) {
    NSLog(@"%d %@", i, obj);
    }]

    NSString
    > $str(@"foo: %@", bar) => [NSString stringWithFormat:@"foo: %@", bar]

    NSDictionary

    > $dict(v1, k1, v2, k2) => [NSDictionary dictionaryWithObjectsAndKeys:v1, k1, v2, k2, nil]
    7 replies    1970-01-01 08:00:00 +08:00
    linlinqi
        1
    linlinqi  
       Mar 30, 2012
    用了一阵子,后来看看Xcode 4.4,就放弃了
    lex
        2
    lex  
       Mar 31, 2012
    这种$开头的总让我先想到jQuery。
    p.s. 貌似现在singleton用gcd实现比较好?
    fly2never
        3
    fly2never  
       Mar 31, 2012
    等4.4
    fly2never
        4
    fly2never  
       Mar 31, 2012
    不知为何,想起了这货
    http://eerolanguage.org/
    1212e
        5
    1212e  
       Mar 31, 2012
    php程序员表示又要开始写$了...
    lldong
        6
    lldong  
       Mar 31, 2012
    qlqsh
        7
    qlqsh  
       Mar 31, 2012
    无非就是简写,觉得意义不是很大。需要记的东西反而增加了,不好,还不如直接snippet。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5394 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
    ♥ Do have faith in what you're doing.