On 24/06/2009, at 4:00 PM, Quincey Morris wrote:

(a) Use the delegate, something like (untested, obviously):

-(void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex {
        if (!<this is the correct column>)
                return;
id objectValue = [self.delegate tableView: self objectValueForTableColumn:aTableColumn row:rowIndex; // or find the data directly from your data model, if not using a data source
        if (objectValue isKindOfClass: [NSNumber class])
                aCell.formatter = myFormatter;
        else
                aCell.formatter = nil;
}


Thanks! That works fine and was very easy...

--Graham


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to