• 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: NSTreeOutline display glitches; how to troubleshoot?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeOutline display glitches; how to troubleshoot?


  • Subject: Re: NSTreeOutline display glitches; how to troubleshoot?
  • From: "Doug Knowles" <email@hidden>
  • Date: Sun, 16 Jul 2006 16:06:28 -0400

On 7/16/06, Fritz Anderson <email@hidden> wrote:
On 16 Jul 2006, at 10:36 AM, Doug Knowles wrote:

It would be helpful if you could post your
outlineView:willDisplayCell:forTableColumn:item: handler.


- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item { id proxy = [NSTreeController objectForOutlineItem:item]; if ( outlineView == (NSOutlineView *)ibListOutlineView ) { if ( [proxy isKindOfClass:[LVProxyCategory class]] ) { NSMutableAttributedString *str = [[[NSMutableAttributedString alloc] initWithAttributedString:[cell attributedStringValue]] autorelease]; NSRange strRange = NSMakeRange( 0, [str length] ); [str applyFontTraits:(NSBoldFontMask) range:strRange]; [cell setAttributedStringValue:str]; } } }


Also, it might help you to NSLog the cell in the case where you
boldface the cell. (If you're boldfacing every time, I think you can
do that by passing setFont: to -[NSTableColumn dataCell] at
awakeFromNib time.)


I only boldface certain rows, but from your suggestion I've been trying to do this by adjusting the font for the cell rather than changing the attributed text value. I'm finding it harder than it ought to be to just modify the "bold" attribute of the cell's font, but removing the change to the text value has eliminated the display problems.

  --
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, Now Available -- http://six.manoverboard.org/


Looks like there's a book purchase in my future! ;-)

Thanks,
Doug K;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTreeOutline display glitches; how to troubleshoot?
      • From: "Doug Knowles" <email@hidden>
References: 
 >NSTreeOutline display glitches; how to troubleshoot? (From: "Doug Knowles" <email@hidden>)

  • Prev by Date: Re: Re: NSEnumerator -> NSPopupButton (was: Re: NSPipe / NSTask ls -> Array)
  • Next by Date: Re: NSTreeOutline display glitches; how to troubleshoot?
  • Previous by thread: Re: NSTreeOutline display glitches; how to troubleshoot?
  • Next by thread: Re: NSTreeOutline display glitches; how to troubleshoot?
  • Index(es):
    • Date
    • Thread