osx - Unable to load item prototype in NSCollectionView -
when executing self.colsoundeffects.itemprototype = self.storyboard!.instantiatecontrollerwithidentifier("soundeffect_item") as? nscollectionviewitem
in swift application, receive following error messages, , view not load:
2015-07-16 15:01:21.790 soundboardfx[48244:19680526] -[nsibobjectdata initwithcoder:]: corrupt , unarchivable nib file 2015-07-16 15:01:21.791 soundboardfx[48244:19680526] *** assertion failure in -[nsstoryboard instantiatecontrollerwithidentifier:], /sourcecache/appkit/appkit-1348.17/appkit.subproj/storyboarding/nsstoryboard.m:208 2015-07-16 15:01:21.791 soundboardfx[48244:19680526] failed set (contentviewcontroller) user defined inspected property on (nswindow): not load scene view controller identifier 'soundeffect_item'
i've double-checked of identifiers, , far can tell, in working order. when remove line, view loads without problem (sans item prototype, of course).
why happening, , how can fix it?
i'm running os x 10.10.4, xcode 6.4 (6e35b).
did try creating new storyboard "soundeffect_item" viewcontroller ? copy-past new story see if earlier story corrupted.
Comments
Post a Comment