Re: Clearing NSTableView on unbind
Re: Clearing NSTableView on unbind
- Subject: Re: Clearing NSTableView on unbind
- From: Jim Correia <email@hidden>
- Date: Mon, 22 Aug 2005 11:53:00 -0400
On Aug 22, 2005, at 11:42 AM, Edwin Vane wrote:
I'm trying to find a nice solution to a simple little problem. I
have a
window that serves as a kind of inspector of a selected object. The
inspector has a table view inside to list some of the properties of
the
selected object. When the selected object changes, I re-bind the array
controllers feeding data to the table to the new selected object.
However, when there
is no/multiple selection, I would like the table to be empty.
Unfortunately, just doing an unbind doesn't seem to work.
Any suggestions?
Use an intermediate controller for the inspector views, and set its
content to nil when there are no inspect-able objects.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden