<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/idev/">
    <title>iDev</title>
    <link>http://w.atwiki.jp/idev/</link>
    <atom:link href="https://w.atwiki.jp/idev/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>iDev</description>

    <dc:language>ja</dc:language>
    <dc:date>2009-07-25T18:23:58+09:00</dc:date>
    <utime>1248513838</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/43.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/42.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/37.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/41.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/39.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/40.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/idev/pages/30.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/idev/pages/26.html">
    <title>コンパイラ指示子</title>
    <link>https://w.atwiki.jp/idev/pages/26.html</link>
    <description>
       @interface クラス名:ルートクラス名
 {
 インスタンス変数宣言;
 }
 メソッド宣言;
 @end
.h　ヘッダファイル
クラスのインターフェース（変数、メソッド）の設定

 @implementation クラス名
 メソッド定義;
 @end
.m　実装ファイル
クラスのメソッドの定義

 @property int a;
 @property(readonly) int b,c;
.h
宣言プロパティ。セッタとゲッタの宣言。　ゲッタはこれと@synthesizeを記述する。
オプション、
　getter=ゲッタ名、setter=セッタ名、readonly、readwrite、assign、retain、copy、nonatomic
　retainなら変数は保持されるので、最後にreleaseすること。

 @synthesize a,b;
 @synthesize a = i;
.m
宣言プロパティ。ゲッタの宣言。

 @class
 @class A;
 @class A,B;
クラス名の前方宣言。クラスの相互宣言の場合などに#importに代えて使用。
コンパイル速度の向上

 @protocol　クラス名:スーパークラス名 &lt;プロトコル&gt;
 　@required　（使用必須時）（規定値、省略可）
   メソッド規定
 　@optional　（使用非必須時）
   メソッド規定
 @end
 ----
 @interface クラス名:スーパークラス名 &lt;プロトコル&gt;
プロトコル
メソッドを規定することでクラスの形を統一にする。

 @interface class (categories)
カテゴリ
ヘッダファイルひとつに多数宣言しておき、実装ファイルを複数宣言する。

 @private
 @protected
 @public
     int value;
 @package
インスタンス変数の可視性の指定。
@interface内で指定。
クラス内（同じクラスならアクセスできる　-&gt;　）
サブクラスまで
どこからでも
クラス内部では@public、外部には@private（64ビットモデル）　32ビットは@public

　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-07-25T18:23:58+09:00</dc:date>
    <utime>1248513838</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/43.html">
    <title>IBOutlet</title>
    <link>https://w.atwiki.jp/idev/pages/43.html</link>
    <description>
       #ifndef IBOutlet
 #define IBOutlet
 #endif
&quot;IBOutlet&quot;の定義
コンパイル時に消去？　作用しない。

 IBOutlet UIview *view;
IBが変数を認識するために使用する。
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-07-20T16:23:08+09:00</dc:date>
    <utime>1248074588</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/27.html">
    <title>プリプロセッサ</title>
    <link>https://w.atwiki.jp/idev/pages/27.html</link>
    <description>
       #import
ヘッダファイルを１度だけ読み込む。

 #include
ヘッダファイルを複数回読み込む。あえての場合のみ使う。

 #define NUMBER 10
プログラム中の文字列を置き換えてコンパイル。
NUMBERを10に置き換え

 #define ADD(a)(a+1)
 
 b = ADD(b);
マクロ。コンパイル時に置き換わる関数。
aを引数とし、a+1を実行。

 #undef 定義名
　#defineを無効化

 #if (NUMBER == 10)
     ここをコンパイル
 #else
     ここはコンパイルしない
 #endif

 #if defined _AAA_　（定義されていれば）
 　　ここをコンパイル
 #elif defined _BBB_
 　　ここをコンパイル
 #endif
条件分岐コンパイル

 #ifdef _AAA_　（定義されていれば）
 
 #endif

 #ifndef _AAA_　（定義されていなければ）
 
 #endif
その他の条件分岐

 #error
 #warning
強制的にコンパイルエラーや警告を出す
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-07-20T16:22:02+09:00</dc:date>
    <utime>1248074522</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/idev/pages/2.html</link>
    <description>
      C + Objective-C(2.0)
　[[プリプロセッサ]]
　[[コンパイラ指示子]]
　[[イニシャライザ]]
　[[self,super]]
　[[変数]]
　[[指定子]]
　[[配列]]
　[[演算子]]
　[[キャスト]]
　[[アクセサ]]
　[[変数の参照]]

Frameworks
　Cocoa/Cocoa.h
　　Foundation/Foundation.h
　　Appkit/Appkit.h

stdio.h
　[[printf]]
　[[scanf]]

NSObject.h
　[[retein]]
　[[autorelease]]

Foundation
　[[ラッパクラス]]
　可変/不変コピー
　[[mutableCopy]]
　文字列
　[[NSString]]
　　[[NSMutableString]]
　配列
　[[NSArray]]
　[[NSMutableArray]]
　[[NSDictionay]]
　[[NSMutableDictionary]]

サンプル
　[[配列ループ]]
　[[列挙子ループ]]
　[[高速列挙ループ]]

Xcode + InterfaceBuilder
　[[お決まり]]
　[[IBOutlet]]

iPhoneDeveloperProgram


T:&amp;counter(today)
Y:&amp;counter(yesterday)
A:&amp;counter()    </description>
    <dc:date>2009-07-20T16:12:30+09:00</dc:date>
    <utime>1248073950</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/42.html">
    <title>お決まり</title>
    <link>https://w.atwiki.jp/idev/pages/42.html</link>
    <description>
      アイコン
大きさ　57*57
ファイル名（標準？）　icon.png
Info.plistのIcon fileにこのファイル名を入力。

Info.plistのBundle identifierに個別のIDを入力。
ex. com.apple.softname
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-07-20T15:39:42+09:00</dc:date>
    <utime>1248071982</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/37.html">
    <title>autorelease</title>
    <link>https://w.atwiki.jp/idev/pages/37.html</link>
    <description>
      自動開放プール

 - (id)autorelease;

 id pool = [[NSAutoreleasePool alloc] init];
 
     処理
     a = [[[A alloc] init] autorelease];
     （インスタンスにはautoreleaseを送っておく）
 
 [pool release]; //インスタンス解放    </description>
    <dc:date>2009-05-30T10:46:50+09:00</dc:date>
    <utime>1243648010</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/41.html">
    <title>ラッパクラス</title>
    <link>https://w.atwiki.jp/idev/pages/41.html</link>
    <description>
       NSValue (数値)
  NSNumber (数値)
  NSPoint (座標)
  NSRect (矩形)
  NSSize (サイズ)
  NSRange (範囲)
  ポインタ(NSPointer)

 NSNull (空オブジェクト)    </description>
    <dc:date>2009-05-30T10:16:50+09:00</dc:date>
    <utime>1243646210</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/39.html">
    <title>mutableCopy</title>
    <link>https://w.atwiki.jp/idev/pages/39.html</link>
    <description>
       - (id)mutableCopy
 
 [[NSMutableString]] *mString = [string mutableCopy];
不変クラスのインスタンスに送ると、レシーバと同じ内容の可変クラスのインスタンスが作成される。
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-05-29T22:11:33+09:00</dc:date>
    <utime>1243602693</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/40.html">
    <title>指定子</title>
    <link>https://w.atwiki.jp/idev/pages/40.html</link>
    <description>
       static
 extern
 typedef

**修飾子
 const
 const int a;
変更不可を明示
　
 volatile
変更有りをコンパイラに明示し、コンパイラの不定動作を防ぐ
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-05-23T17:43:43+09:00</dc:date>
    <utime>1243068223</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/idev/pages/30.html">
    <title>self,super</title>
    <link>https://w.atwiki.jp/idev/pages/30.html</link>
    <description>
      クラス内自身のメソッドの使用
継承元のクラス（スーパークラス）のメソッドの使用

 self
 [self method];
そのインスタンス自身のクラス。
そのスーパークラス内のselfは、継承されたインスタンス自身のメソッドが使用される。

 super
 [super method];
そのインスタンスの継承元のクラス（スーパークラス）。
継承元のインスタンスのメソッドが使用される。
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2009-05-23T11:49:01+09:00</dc:date>
    <utime>1243046941</utime>
  </item>
  </rdf:RDF>
