2014/02/01 @ GREE

ARC (Automatic Reference Counting) の管理対象となっているオブジェクトのキャストを行いたい場合は、つぎの 3 通りの方法で行うことができるとのことです。 単純なキャスト まず、"__bridge" をキャスト後の型指定の前につけて、キャストを行う方法です。 このとき、変換元の型が retain 可能なポインターであれば変換先はそうでない型を、変換元の型が retain できないポインターであれば変換先は retain できる型を、指定する感じに使うとのことでした。 このキャストによって、制御レベルが変更されたりとか、retain されたりといったことはないようです。 retain を伴うキャスト つぎに、"__bridge_retained" をキャスト後の型指定の前につけて、キャストを行う方法です。
This question has been asked before, but digging into the documentation for the various development tools it seems like this is possible, just not obvious. Motivation: Making a static library for use by other iOS developers. Some symbols in the library will cause problems if exported so I wish to make them internal-only symbols. With a dynamic library this is easy, just use -exported_symbols_list
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? iOSについては環境の進化が速く、書籍の内容が古くなっていることがほとんどなのですが Android開発を始めたばかりの僕が読みたかった本が面白かったので自分も似たようなことを書いておきます。 詳解 Objective-C 2.0  Objective-Cのメモリ管理の仕組みであるリファレンスカウンタについて理解するために購入。現在発売中の第3版ではARCについても記載されているので最新のものを買うのが
I have no doubt that automatic reference counting (ARC) is the next big leap forward for Objective-C since the introduction of Objective-C 2.0. ARC allows you to put the burden of memory management on the (Apple LLVM 3.0) compiler, and never think about retain, release and autorelease ever again. Since many user’s first experiences with ARC will be trying to convert an existing app, they will lear
iOS5からサポートされているARC(Automatic Reference Counting)は今まで使う機会がなかったので名前だけ知ってるみたいな状態でした。 今さらですがいろいろ調べたので調査結果をまとめたいと思います。調査した環境は以下になります。 Mac OS X 10.8 Mountain lion Xcode 4.6.3 まずは参照カウンタ方式の復習 ARCは基本的には以前と同じ参照カウンタ方式を自動化したものなので、ARCをやる前にまずは手動でのメモリ管理を復習します。 まずは新しいプロジェクトを作成します。テンプレートはCommand Line Toolを使います。 今回は手動でメモリ管理するのでARCはチェックを外しておいて下さい。 プロジェクトが作成できたらCarクラスとEngineクラスを作成して下さい。テンプレートはObjective-C classです。 サンプ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く