Changing fonts in an NSTableView
Changing fonts in an NSTableView
- Subject: Changing fonts in an NSTableView
- From: Julian Barkway <email@hidden>
- Date: Sun, 7 Apr 2002 20:58:20 +0200
I would like to provide the facility of changing the font for my table
view using the fonts panel but I seem to have run into a problem...
According to the documentation, all I need to do is set up my app to be
font-aware in IB and then make sure my view object responds to
'changeFont: sender'. However, although I can get the font panel to
appear, nothing I try will get it to send 'changeFont:' to my view. I've
tried explicitly making my view firstResponder and setting it as the
fontManager's delegate but nothing works. This has me completely
stumped. Not even the example code for TextEdit is any use as this,
apparently, has the required behaviour happening 'automagically'.
I can set the default font from within the tableView:willDisplayCell:...
delegate method without a problem using a hard-coded font-name - it's
just the font panel that has me stumped. And, yes, I have RTFM!
Any help gratefully received!
Cheers,
Julian Barkway
_______________________________________________
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.