Re: activating Delete menu item through binding

2012-04-24 Thread Koen van der Drift
On Apr 21, 2012, at 11:01 PM, Quincey Morris wrote: > It's not clear what went wrong with '[employeeController remove: nil]', but > that's a completely separate problem. For example, if you left the array > controller in Class mode rather than Entity mode, 'remove:' won't update Core > Data pr

Re: activating Delete menu item through binding

2012-04-24 Thread Quincey Morris
On Apr 21, 2012, at 19:18 , Koen van der Drift wrote: > So, I solved it as follows. I created a deleteObjects IBAction in my > AppController class invoked by the delete menuItem. To remove the objects, I > am more or less following the code in Hillegass' book, chapter 15 on > NSAlerts. In thi

Re: activating Delete menu item through binding

2012-04-24 Thread Koen van der Drift
On Apr 16, 2012, at 7:34 PM, Quincey Morris wrote: > Yes, that's an awkward case. Although a NSViewController *is* a responder, it > *isn't* automatically added to the responder chain. Therefore it cannot be > found as first responder, and so its action method is not recognized by menu > valid

Re: activating Delete menu item through binding

2012-04-16 Thread Quincey Morris
On Apr 16, 2012, at 16:18 , Koen van der Drift wrote: > Still a bit confused here. My tableview from which I want to delete > items is controlled by an NSViewController, and populated by an > NSArrayController that is again hooked up to my CoreData model. Yes, that's an awkward case. Although a N

Re: activating Delete menu item through binding

2012-04-16 Thread Koen van der Drift
Still a bit confused here. My tableview from which I want to delete items is controlled by an NSViewController, and populated by an NSArrayController that is again hooked up to my CoreData model. The layout is the typical iTunes type layout, an outlineview on the left, a tableview in the middle an

Re: activating Delete menu item through binding

2012-04-15 Thread Quincey Morris
On Apr 15, 2012, at 11:53 , Koen van der Drift wrote: > Interestingly, the 'Select All' menu item that sits just under the Delete > item (and both of them were already present when I started my project) works > 'out of the box' for my NSTableView, I did not set any responders or do any > valid

Re: activating Delete menu item through binding

2012-04-15 Thread Koen van der Drift
Excellent explanation, thanks Quincey. Interestingly, the 'Select All' menu item that sits just under the Delete item (and both of them were already present when I started my project) works 'out of the box' for my NSTableView, I did not set any responders or do any validation, etc. - Koen.

Re: activating Delete menu item through binding

2012-04-15 Thread Quincey Morris
On Apr 15, 2012, at 11:13 , Koen van der Drift wrote: > My MainMenu.nib has a 'Delete' menu item that is mapped to the Delete key. > I'd like to use that to remove items from my NSTableView that is connected to > an NSArrayController. So in the bindings for the Delete menu item, I set > it's

activating Delete menu item through binding

2012-04-15 Thread Koen van der Drift
My MainMenu.nib has a 'Delete' menu item that is mapped to the Delete key. I'd like to use that to remove items from my NSTableView that is connected to an NSArrayController. So in the bindings for the Delete menu item, I set it's availability to myArrayController.canRemove. However, the Dele