Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Rick Mann
> On Jul 31, 2015, at 15:33 , Quincey Morris > wrote: > > Incidentally, they’re optional because a bindings-based table doesn’t use > them, but still might have a data source because the methods that support > drag-and-drop are data source methods, not delegate methods. Yeah, I realized that

Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Quincey Morris
On Jul 31, 2015, at 15:17 , Rick Mann wrote: > > I'm not sure why those methods are optional if they must be implemented, but > whatever. Incidentally, they’re optional because a bindings-based table doesn’t use them, but still might have a data source because the methods that support drag-a

Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Rick Mann
Yeah, it really does sound like that, doesn't it? You know what? I forgot to set the class name in the view controller in the storyboard. I'm an idiot. Thanks! > On Jul 31, 2015, at 15:24 , Raglan T. Tiger wrote: > > sounds like the delegate isn't set so it don't know where to look for those

Re: Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Raglan T. Tiger
sounds like the delegate isn't set so it don't know where to look for those or the delegate is set to the wrong object -rags > On Jul 31, 2015, at 4:17 PM, Rick Mann wrote: > > But I still get this at run time: > > *** Illegal NSOutlineView data source (). > Must implement outlineView:num

Swift NSOutlineView "Illegal NSOutlineView data source"

2015-07-31 Thread Rick Mann
Googling for this suggests the problem is old, and not confined to Xcode 7b4, but the proposed solutions (deleting and re-typing the methods) doesn't work for me. Has anyone found a better solution? I have a simple NSOutlineView in source list mode, using an NSOutlineViewDataSource, in Swift 2.