• 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: DateFormatter in a table?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: DateFormatter in a table? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: NSView not initialized and unusable
  • Next by Date: Re: DateFormatter in a table?
  • Previous by thread: Re: DateFormatter in a table?
  • Next by thread: NSBrowser's reloadColumn: question
  • Index(es):
    • Date
    • Thread