aaronbrethorst / BCCollectionView
ざっとコードを眺めてからビルドしてみたところ、たしかに軽快に動く。
コードはほぼこれだけ。
- (NSSize)cellSizeForCollectionView:(BCCollectionView *)collectionView
{
return NSMakeSize(64, 64);
}
//Return an empty ViewController, this might not be visible to the user immediately
- (NSViewController *)reusableViewControllerForCollectionView:(BCCollectionView *)collectionView
{
return [[[CellViewController alloc] init] autorelease];
}
//The CollectionView is about to display the ViewController. Use this method to populate the ViewController with data
- (void)collectionView:(BCCollectionView *)collectionView willShowViewController:(NSViewController *)viewController forItem:(id)anItem
{
CellViewController *cell = (CellViewController*)viewController;
[cell.imageView setImage:anItem];
}
デリゲートが3つ、その他に表示のようImageを収納するArrayを生成しているくらい。これだけで動くんだからいじってみる価値はありとみた。Icon表示はこのViewのお世話になる可能性が高いな。

0 件のコメント:
コメントを投稿