タグ

ARCに関するrabbit2goのブックマーク (7)

  • プロジェクトのARC移行について

    iOS Advent Calendar 2011 22日目 この記事は@glassonion1さん主催のiOS Advent Calendar2011に向けて書いています。 昨日の@yomoappさんのiOS向けのオープンソースをまとめたサイトを作りましたからのバトンタッチです。 最近4.2以前のXCodeで開発したアプリをARC対応させたので、その手順と注意点など書いていきたいと思います。 ARCって何ですか ARCとはAutomatic Reference Countingの略称で、XCode4.2のApple LLVM 3.0 コンパイラから搭載された新機能です。 ご存知、iOSのObjective-CにはGCが無い為、オブジェクトのライフタイム管理はretain/releaseによるリファレンスカウンタの増減によって制御していました。 ARCはこれまで自分で記述しなければならなかっ

    プロジェクトのARC移行について
  • [iOS5] ARC : プロパティ属性と使い方 | Natsu note

    strong __strong修飾子に対応するプロパティ属性です。strong属性を用いたプロパティは参照先オブジェクトのオーナーとなります。 weak __weak修飾子に対応するプロパティ属性です。__weak修飾子を持った変数と同様、weak属性のプロパティも、参照先のオブジェクトが破棄されたら自動的にnilが代入されます。weak属性を用いたプロパティはオーナーシップ権を持ちません。 weak属性は、delegateやOutletの変数に最適です。 なお、iOS 4では__weak修飾子が使えないため、プロパティのweak属性も使えません。この場合は、後述のunsafe_unretainedを使いましょう。 copy __strong修飾子に対応しますが、実際にはコピーオブジェクトが代入されます。copy属性を用いたプロパティは参照先オブジェクトのオーナーとなります。 unsafe

  • ARCでめちゃモテiOSプログラマー

    This document discusses Automatic Reference Counting (ARC) in iOS. It explains how ARC manages memory by automatically retaining and releasing objects, eliminating the need for manual memory management. Key points covered include how ARC handles strong and weak references, transitioning between non-ARC and ARC code, and some tips for using ARC in practice.Read less

    ARCでめちゃモテiOSプログラマー
  • [iOS5] ARC (Automatic Reference Counting) : Overview » iOS 開発ブログ Natsu's note - iOS 開発ブログ Natsu's note

    [iOS5] ARC (Automatic Reference Counting) : Overview 2011/11/16/|iOS|メモリ管理, iOS5, ARC iOS 5では数々の機能が追加されましたが、その中でも開発者の私たちにとって嬉しかったのはARC(Automatic Reference Counting)ではないでしょうか。そこで、ARCの概要から注意点まで、基的なところを何回かに分けてまとめていきたいと思います。 ARCとは? ARC (Automatic Reference Counting) とは、その名の通り、自動リファレンスカウンタ。リファレンスカウンタ方式のメモリ管理を自動で(正確にはコンパイラが)行ってくれるというものです。 ご存知リファレンスカウンタ方式のメモリ管理では、retain, releaseなどのメソッドを用いて生成したオブジェクトの保持状

    [iOS5] ARC (Automatic Reference Counting) : Overview » iOS 開発ブログ Natsu's note - iOS 開発ブログ Natsu's note
  • Beginning ARC in iOS 5 Tutorial Part 1

    Update 10/24/12: If you’d like a new version of this tutorial fully updated for iOS 6 and Xcode 4.5, check out iOS 5 by Tutorials Second Edition! Note from Ray: This is the twelfth iOS 5 tutorial in the iOS 5 Feast! This tutorial is a free preview chapter from our new book iOS 5 By Tutorials. Matthijs Hollemans wrote this chapter – the same guy who wrote the iOS Apprentice Series. Enjoy! This is a

  • こたつつきみかん » Automatic Reference Counting – 自動参照カウンタ

    iOS5で久しぶりにわくわくしてきたので、ブログの更新が増えるといいですね。ところで、Automatic Reference Counting (ARC) が非常に気になるので、ちょっと調べてみました。英語力とコンパイラについての知識があまり豊富でないので、間違っているところもあるかもしれませんが、ある程度納得できたのでまとめてみます。 Automatic Reference Counting(以後ARC) は、簡単に言うと retain/release を自動挿入する技術で、手動でやっていた参照カウンタを自動でやってくれるものです。したがって、ARCの対象となるのはObjective-Cのオブジェクトとなります。このオブジェクトにはBlocksオブジェクトも含まれますが、Core Foundationのオブジェクトは含まれません。 ARCを使うには、いくつかの制約があります。詳しくはAR

  • Objective-C Automatic Reference Counting (ARC) — Clang 20.0.0git documentation

    Objective-C Automatic Reference Counting (ARC)¶ About this document¶ Purpose¶ The first and primary purpose of this document is to serve as a complete technical specification of Automatic Reference Counting. Given a core Objective-C compiler and runtime, it should be possible to write a compiler and runtime which implements these new semantics. The secondary purpose is to act as a rationale for wh

  • 1