• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings with Differing Data Cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Bindings with Differing Data Cells
      • From: Duncan Alexander Oliver <email@hidden>
References: 
 >Bindings with Differing Data Cells (From: Duncan Alexander Oliver <email@hidden>)

  • Prev by Date: Re: How to trim a bezier path?
  • Next by Date: Re: menu-free app
  • Previous by thread: Bindings with Differing Data Cells
  • Next by thread: Re: Bindings with Differing Data Cells
  • Index(es):
    • Date
    • Thread