SlideShare a Scribd company logo
簡単Cocoaで補助ツールを作ろう
Cocoaアプリって面倒?



✤   コツをつかめば簡単

✤   Cocoa bindingって実はすごい

✤   テンプレートさえあれば、書き慣れたObjective-cでゴリゴリいける
テンプレート


 いくつかのファイルに対する一斉処理をする
 https://github.com/Ushio/EasyCocoaAutometor
構成

                                         View
                       CollectionView           バインド
                                         CollectionViewItem
                 参照

MainController         バインド


                  参照

                       ArrayController
ソースコード

                  MainController.m

//ボタンイベント
- (IBAction)execute:(id)sender
{
    for(NSDictionary *content in contents.arrangedObjects)
    {
        NSString *path = content[@"path"];
        NSLog(@"%@", path);

        //insert your code
    }
}
Enjoy! Cocoa

More Related Content

PDF
Grails-1.1を斬る!~Grails-1.1からのチーム開発~ in Tokyo
PDF
もうちょっと早く知りたかった kubectl
PDF
Real timeimageprocessing
PDF
Programmer @jc-21 2014/03/29
PPT
La espiral de la tercera ley de kepler. Astronomía, Sistema Solar, Tierra
PDF
Blur based Weber–Fechner law
PDF
静的リンクライブラリ
PDF
SWWDC2012_11_17
Grails-1.1を斬る!~Grails-1.1からのチーム開発~ in Tokyo
もうちょっと早く知りたかった kubectl
Real timeimageprocessing
Programmer @jc-21 2014/03/29
La espiral de la tercera ley de kepler. Astronomía, Sistema Solar, Tierra
Blur based Weber–Fechner law
静的リンクライブラリ
SWWDC2012_11_17
Ad

Lt cocoa