人生初ブログ
夜中に意識が高まったのでブログ始めてみた。
続かなそうだけど、開設までたどり着いた。
iOS,Objective-Cを中心に自分用メモを書いていこうと思う。
んで、今日初めて知ったNSCountedSetをメモ。
Each distinct object inserted into anNSCountedSet
object has a counter associated with it.NSCountedSet
keeps track of the number of times objects are inserted and requires that objects be removed the same number of times.
insert/removeされた回数を覚えてくれるSetらしい。
全然知らなかったし、使いどころが浮かばん。
どういうシーンで使うんでしょうな。とりあえず存在は覚えておこう。