402v /posts/mackai-fa-ri-ji

Mac开发日记

###NSCollectionView

  1. 通过 collectonViewItem.representedObject 拿到当前item正在展示的model,在其中可以存储id,index等信息

###NSArrayController

  1. reload内容

     .rearrangeObjects()
    
  2. NSCollectionView + NSArrayController 实战 - 教程网

评论 · 0

还没有评论。