Hi All,
I am trying to set a particular font for the NSBrowserCell. Basically i want
some of the cells in the Browser to Appear in bold. I tried the following in
the browser willDisplayCell method but with no success. can some one please let
me know what is the correct approach
- (void) browser:(NSBrowser*)theBrowser willDisplayCell:(id)cell
atRow:(int)rowNumber column:(int)columnNumber
I have tried the following code so far
1) Using NSFont
[cell setFont:[NSFont fontWithName:@"Geneva-Bold"size:10]];
2) Using NSFontManager
[cell setFont:[[NSFontManager sharedFontManager] fontWithFamily:@"Geneva"
traits:NSBoldFontMask
weight:9
size:10] ];
But in either case the font does not seem to change. Is there any other way in
which this can be done.
Thanks and Regards,
Sandeep.
_______________________________________________
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]