• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Newbie] NSOutlineView and setFont: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: [Newbie] NSOutlineView and setFont: ? (From: Rakesh Pandey <email@hidden>)

  • Prev by Date: Re: Cocoa approachable by non-programmers ?
  • Next by Date: Re: New to Cocoa
  • Previous by thread: Re: [Newbie] NSOutlineView and setFont: ?
  • Next by thread: Re: [Newbie] NSOutlineView and setFont: ?
  • Index(es):
    • Date
    • Thread