Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 8:28 AM, Stephane Sudre wrote: On 4 mars 08, at 17:14, Corbin Dunn wrote: On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and th

Re: two table view selection problem

2008-03-04 Thread Stephane Sudre
On 4 mars 08, at 17:14, Corbin Dunn wrote: On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row

Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 8:09 AM, Andy Lee wrote: Try changing the -isEqual: calls to == instead, e.g.: if ([notification object] == tableView1) I suspect -isEqual: is always returning YES. No, this is not the problem. Using == is okay (and faster), since NSView's are always unique. -c

Re: two table view selection problem

2008-03-04 Thread Corbin Dunn
On Mar 4, 2008, at 6:49 AM, Stéphane wrote: On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row in tableView1 to be deselected. For this I'm

Re: two table view selection problem

2008-03-04 Thread Andy Lee
Try changing the -isEqual: calls to == instead, e.g.: if ([notification object] == tableView1) I suspect -isEqual: is always returning YES. --Andy On Mar 4, 2008, at 9:35 AM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in ta

Re: two table view selection problem

2008-03-04 Thread Stéphane
On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote: Hi, I have two NSTableView in my app (tableView1 and tableView2). If I select a row in tableView1 and then if I select a row in tableView2, I want the row in tableView1 to be deselected. For this I'm using [tableView1 deselectAll: nil], but it le