enable binding in tableView - was Re: Welcome to the "Cocoa-dev" mailing list
enable binding in tableView - was Re: Welcome to the "Cocoa-dev" mailing list
- Subject: enable binding in tableView - was Re: Welcome to the "Cocoa-dev" mailing list
- From: Jason Jobe <email@hidden>
- Date: Fri, 11 Feb 2005 19:55:19 -0500
The work around I am working on leverages the TableView's delegate using
- (void)tableView:(NSTableView *)aTableView
willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
While this lets me set things properly, I'm experiencing a refresh problem even using
[aTableView setNeedsDisplay:YES];
While this isn't as elegant as a simple binding, it works (except for the refresh).
All ideas and suggestions welcome.
-jason
On Feb 11, 2005, at 7:12 PM, Jim Hagen wrote:
Ouch, that's tough, is there any sort of a workaround?
I actually managed to get rid of this error in my app by also binding "editable". What's weird is it didn't work until both "editable" and "enabled" were set up, and ( of course ) the "Conditionally sets editable/enabled" checkboxes in "value" are clear.
On Feb 11, 2005, at 10:28 AM, mmalcolm crawford wrote:
On Feb 11, 2005, at 9:08 AM, mmalcolm crawford wrote:
The goal is to disable the pulldown (in the tableView) when "included" is false and enabled it when it is true.
Bind its enabled value to [To Dos].arrangedObjects.include
I tried binding the "enabled" attribute of the column to it in IB. In so doing I get the following error when attempting to display a document.
2005-02-08 10:01:21.735 ToDos[7594] [<NSTableColumn 0x556b30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key enabled.
Sorry, it looks like this is a bug on Panther.
No need to file a report...
mmalc
_______________________________________________
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
- jason
email@hidden
_______________________________________________
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