タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

objective-cとtipsに関するkomagataのブックマーク (2)

  • メモリリークを調べたい - ちくわプログラマにっき

    iPhoneアプリケーション開発ではガベージコレクションが使えないためJavaRubyのようなガーベージコレクションを備えている言語環境と異なりメモリリークの危険と常に隣り合わせです。しかし、iOS SDKにはメモリリークの検出をサポートするためのツールが用意されています。これを利用しない手はありませんね。 iOS SDKが提供するメモリリーク検出をサポートするツールは以下の2つがあります。 静的コード解析を行う「静的アナライザ」 動的プログラム解析を行う「Instruments」 静的アナライザはソースコードを静的に解析してメモリリークしていそうな箇所を推測する「静的コード解析」を、Instrumentsは実際にアプリを動かしながらメモリリークを検出する「動的プログラム解析」をそれぞれ行います。 静的アナライザ 静的アナライザを利用するには、Xcodeのメニューから「ビルド - Bui

    メモリリークを調べたい - ちくわプログラマにっき
  • Constants in Objective-C

    I'm developing a Cocoa application, and I'm using constant NSStrings as ways to store key names for my preferences. I understand this is a good idea because it allows easy changing of keys if necessary. Plus, it's the whole 'separate your data from your logic' notion. Anyway, is there a good way to make these constants defined once for the whole application? I'm sure that there's an easy and intel

    Constants in Objective-C
    komagata
    komagata 2010/12/09
    静的クラス変数の書き方
  • 1