最終更新:2013-06-19 (水) 00:01:13 (3958d)  

Xcode 4.4
Top / Xcode 4.4

http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_4.html

メモ

  • プロジェクトの新規作成時に、「Organization Name」という項目が増えた

Xcode 4.4から使えるようになった新しいObjective-Cの書き方

@synthesizeを省略可能 (Objective-C/プロパティ)

  • @synthesize@dynamicも書かなかった場合には@synthesizeを付けたのと同じ扱いとなる
    // ViewController.h
    @property (strong) NSString* testString;
    
    // ViewController.m
    @synthesize testString = _testString;
  • // ViewController.h
    @property (strong) NSString* testString;
  • @synthesizeされる相手のivarは、同名の変数ではなくてアンダーバーを最初に付けた物がデフォルト

strong / assign は省略できる

  • propetyはオブジェクト型の場合は strong 、それ以外の場合は assign がデフォルト

NSNumber, NSArray, NSDictionary も@リテラルで書ける

NSArray, NSDictionaryのアクセスに’[]‘を使える

privateメソッドの定義を省略可能

New Interface Builder Support for AppKit Features

  • Xcode’s Interface Builder includes support for new AppKit features.
  • Autolocalization
  • Improved trackpad API
  • Auto Layout improvements
  • CoreUI-based UI customization
  • NSView API
  • Paging control
  • The addition of Page Control View

参考