Re: Pop Up Menu in NSTableView

2013-03-25 Thread Keary Suska
On Mar 25, 2013, at 11:05 AM, Jerry Krinock wrote: > • NSTableColumn 'selected object' must be bound to 'arranged objects' of > array controller. (This is always true, regardless of what the cell type is.) I don't understand this statement--I didn't think that NSTableColumn has a "selected obj

Re: Pop Up Menu in NSTableView

2013-03-25 Thread Pax
I'm going to try both types of table - but I need to find good documentation, preferably with examples, first. Right now, however, I've decided that this is useful future functionality, and not core to the software. So I've gone back to plan a - checkboxes in NSTableView (still need to work th

Re: Pop Up Menu in NSTableView

2013-03-25 Thread Jerry Krinock
First of all, I don't want to dissuade you from considering a view-based table as Quincey suggested, if that works for you. As Quincey said, NSPopUpButtonCell can be used in tables. I've done it many times. On 2013 Mar 24, at 13:47, Pascal Harris <45rpmli...@googlemail.com> wrote: > cellPref

Re: Pop Up Menu in NSTableView

2013-03-25 Thread Keary Suska
On Mar 24, 2013, at 5:26 PM, Quincey Morris wrote: >> As to the backtrace: > > That looks unsurprising. In particular, after the table view passed the > mouse-down to the popup button, it didn't get involved again later. > > Are you sure the action method isn't being called twice, with differen

Re: Pop Up Menu in NSTableView

2013-03-24 Thread Quincey Morris
On Mar 24, 2013, at 15:16 , Pax <45rpmli...@googlemail.com> wrote: > Ah. I shall have to look that up. Do you know of any good examples for view > based tables? Not really. You can work through the Apple documentation: https://developer.apple.com/library/mac/#documentation/Cocoa/Conc

Re: Pop Up Menu in NSTableView

2013-03-24 Thread Pax
Ah. I shall have to look that up. Do you know of any good examples for view based tables? As to the backtrace: * thread #1: tid = 0x2403, 0x0001004cb55e DefaultPlugin`-[DefaultPlug cellPreferenceChanged:](self=0x00010182a5b0, _cmd=0x000101826ea0, sender=0x00010182cc00) + 30 at

Re: Pop Up Menu in NSTableView

2013-03-24 Thread Quincey Morris
On Mar 24, 2013, at 14:50 , Pax <45rpmli...@googlemail.com> wrote: You may be more successful if you use a view-based table rather than a cell-based table. One of the reasons we have view-based tables is to be able to avoid dealing with cells directly, in situations like this. However, if you'v

Re: Pop Up Menu in NSTableView

2013-03-24 Thread Pax
With regard to the title to display, I was thinking of 'Activated' if actions are selected (and by clicking on the pop up one can see exactly what actions are selected), and 'Deactivated' if no selections have been made. That wording might need a little work, but that's the gist of it. As to y

Re: Pop Up Menu in NSTableView

2013-03-24 Thread Quincey Morris
On Mar 24, 2013, at 13:47 , Pascal Harris <45rpmli...@googlemail.com> wrote: > Question 1. Is this possible, and am I even using the correct tool to do the > job? It's certainly possible to use popup buttons in a table column. It's questionable whether this is the right tool for this job. Popup

Pop Up Menu in NSTableView

2013-03-24 Thread Pascal Harris
I have a table which has a list of items on which multiple actions can be performed. Initially, I thought to use check box cells (there are only two possible actions that can be performed on each item right now - so the list of columns is manageable) I thought a little further about the proble