NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Roland King
I started over a couple of weeks ago with the new Hillegass book, trying to make sure I understood things properly this time and of course I'm now stuck. I'm at the 'RaiseMan' chapter now. This is where Hillegass introduces a NSArrayController and its use with an NSTableView. Here are the

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Felix Franz
On 29.07.2008, at 18:01, Roland King wrote: I started over a couple of weeks ago with the new Hillegass book, trying to make sure I understood things properly this time and of course I'm now stuck. I'm at the 'RaiseMan' chapter now. This is where Hillegass introduces a NSArrayController

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread I. Savant
'Delete' however I don't understand. Hitting the button triggers the remove: action in the NSArrayController which deletes the selected entry from the NSMutableArray but ... how does it know which one to delete? I haven't told the NSArrayController what NSTableView it's attached to, or if it's

Re: NSArrayController selection for remove: ... how does it know?

2008-07-29 Thread Roland King
On Jul 30, 2008, at 12:28 AM, I. Savant wrote: 'Delete' however I don't understand. Hitting the button triggers the remove: action in the NSArrayController which deletes the selected entry from the NSMutableArray but ... how does it know which one to delete? I haven't told the