Re: NSOutlineView hiding a column while editing a row in another column
Re: NSOutlineView hiding a column while editing a row in another column
- Subject: Re: NSOutlineView hiding a column while editing a row in another column
- From: Corbin Dunn <email@hidden>
- Date: Fri, 11 Jul 2008 08:57:47 -0700
On Jul 10, 2008, at 4:17 PM, Joan Lluch (casa) wrote:
I have a NSOutlineView which I want to make several columns hidden
in response to a user action. I have set up the outlineColumn to
resize with table and the rest have fixed size, so that when one or
more columns are hidden, the outlineColumn widens accordingly. In
normal conditions everything goes as expected.
However, if the user is editing a row of the outlineColumn and then
decides to hide a different column, the focus ring of the resized
outlineColumn is not changed and the result is a mess of several
columns in that row.
Please log a bug on that; it is a case I hadn't thought of, and
something I need to fix.
I just need a way to tell the outlineView that update the size of
the cell being edited (and its focus ring), or simply a way to
programatically commit and accept the user changes on the cell. I
can not use commitEditing because the outlineView is not bound to
any controller, and I use the data source methods instead.
Just make the window or the tableview the first responder, ie:
[tableView.window makeFirstResponder:tableView.window]; that will
commit editing (well, it will commit it if the textfield really gave
up first responder status).
corbin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden