Re: Bindings with Differing Data Cells
Re: Bindings with Differing Data Cells
- Subject: Re: Bindings with Differing Data Cells
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 8 Dec 2005 04:54:24 -0800
On Dec 7, 2005, at 7:27 PM, Duncan Alexander Oliver wrote:
To allow for different data cells in the same table column, I've
subclassed NSTableColumn, overridden dataCellForRow and kept it's
data cell to the default cell in Interface Builder. One of these
varying cells, for example, is a NSDatePickerCell. The problem is
that when I try to bind it to an array controller, I get the
following error.
-[NSDatePickerCell setPlaceholderString:]: selector not recognized
[self = 0x5313ad0]
This also happens with a NSPopUpButtonCell. I have no placeholders
set in the binding options, both when I've tried binding the table
column both with Interface Builder and programmatically. Is this a
bug? I'm I going to have to change the data cell in Interface
Builder, and if so, to what? Thanks in advance.
It may or may not be a bug, but I'd try stubbing out -
setPlaceHolderString: in a category, and see if that gets you unstuck.
@implementation NSDatePickerCell (stub)
- (void) setPlaceholderString:(NSString *)string { return; }
@end
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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