Re: DateFormatter in a table?
Re: DateFormatter in a table?
- Subject: Re: DateFormatter in a table?
- From: Keith Pritchard <email@hidden>
- Date: Sun, 29 Sep 2002 17:49:20 +0100
On Sunday, September 29, 2002, at 04:19 PM, Matt Neuburg wrote:
>
I've never attached a formatter to a table column using IB; I've always
>
done it in code, which works just fine. It couldn't hurt for you to try
>
that. m.
>
Still not getting it working.... any time I put a formatter on a column
whether programatically or via IB, the column just stays blank....
whats the best way to debug?
Trying this:-
- (void) awakeFromNib
{
NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setFormat:@"0.00%"];
[[[articleview tableColumnWithIdentifier:@"dateField"] dataCell]
setFormatter:formatter];
[formatter release];
}
and returning @"12" for simplicity for every data request as below...
and still just get blank cells out :/
- (id)outlineView:(NSOutlineView *)outlineView
objectValueForTableColumn:(NSTableColumn *)col byItem:(id)item
{
if ([[col identifier] isEqualToString:@"numberField"]) return
[item objectForKey:@"subject"];
if ([[col identifier] isEqualToString:@"authorField"]) return
[item objectForKey:@"name"];
if ([[col identifier] isEqualToString:@"dateField"]) return @"12";
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.