How do you change the colour of the text in an NSMatrix?
Ok, I almost got it, but I can’t figure out how to change the title of the individual cells within the code (using obj-c by the way)
[code]-(void) awakeFromNib{
NSString *title = @“Social”;
NSColor *textColor = [NSColor whiteColor];
NSMutableAttributedString *attrTitle = [[NSMutableAttributedString alloc] initWithString:title];
int len = [attrTitle length];
NSRange range = NSMakeRange(0, len);
[attrTitle addAttribute:NSForegroundColorAttributeName
value:textColor
range:range];
[attrTitle fixAttributesInRange:range];
[self setAttributedTitle:attrTitle];
[attrTitle release];
}[/code]
How would I make another title called “Ranked” so that both the matrix cells dont have the same name?