Re: [Newbie] NSOutlineView and setFont: ?
Re: [Newbie] NSOutlineView and setFont: ?
- Subject: Re: [Newbie] NSOutlineView and setFont: ?
- From: Jérome Foucher <email@hidden>
- Date: Mon, 24 Feb 2003 18:09:21 +0100
On lundi, fiv 24, 2003, at 17:50 Europe/Paris, Rakesh Pandey wrote:
>
int i;
>
NSArray *columnsArray = [yourOutLineView tableColumns];
>
for (i= 0; i < [columnsArray count]; i++)
>
[[[columnsArray objectAtIndex:i] dataCell] setFont:[NSFont
>
systemFontOfSize:10]];
Thanks.
That works fine, except for a column which prototype is custom.
This custom cell is just a NSCell that implements both text and icon
content.
The text from the cell is drawn using [super drawWithFrame].
It seems that [super drawWithFrame] doesn't take the font into account.
Am I missing something ?
(I tried to call setFont: directly on the prototype cell that I define
using :
[tableColumn setDataCell:prototypeCell];
... but to no avail. The cells from this column are always drawn with
the default font for outline views..)
Thanks in advance for the answers,
Jirome
_______________________________________________
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.