HotCocoa / hotcocoa

MacRuby HotCocoa UI library
120 stars 8 forks source link

Collection View in Demo.app is broken #11

Closed ferrous26 closed 13 years ago

ferrous26 commented 13 years ago

This problem is multi-fold. The first part of the problem is that I changed the mapper to #send #define_method instead of using #module_eval on a string. This triggered MacRuby Ticket #1371.

But now there is another issue:


2011-08-01 18:26:17.464 Demo[22470:e07] NSCollectionView item prototype must not be nil.
2011-08-01 18:26:17.470 Demo[22470:e07] (
    0   CoreFoundation                      0x00007fff98b2e4d6 __exceptionPreprocess + 198
    1   libobjc.A.dylib                     0x00007fff96be0d5e objc_exception_throw + 43
    2   AppKit                              0x00007fff93f6822d -[NSCollectionView backgroundColors] + 0
    3   AppKit                              0x00007fff93f62224 -[NSCollectionView _getItemsToDisplay] + 528
    4   AppKit                              0x00007fff93f68a0c -[NSCollectionView setContent:] + 275
    5   AppKit                              0x00007fff93f3c764 -[NSCollectionViewBinder _updateContent] + 91
    6   AppKit                              0x00007fff93f3c698 -[NSCollectionViewBinder _observeValueForKeyPath:ofObject:context:] + 80
    7   AppKit                              0x00007fff9380a59f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
    8   ???                                 0x0000000111710e97 0x0 + 4587589271
    9   libmacruby.dylib                    0x000000010fcc9053 rb_vm_dispatch + 1331
    10  ???                                 0x00000001116b0d74 0x0 + 4587195764
    11  ???                                 0x000000011171071c 0x0 + 4587587356
    12  libmacruby.dylib                    0x000000010fccc866 rb_vm_block_eval2 + 1430