• 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: NSTableRowView appearance when group rows float - SOLVED
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableRowView appearance when group rows float - SOLVED


  • Subject: Re: NSTableRowView appearance when group rows float - SOLVED
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 17 Aug 2014 11:31:00 -0400

On Aug 17, 2014, at 11:22 AM, Kyle Sluder <email@hidden> wrote:

> On Aug 17, 2014, at 7:31 AM, Bill Cheeseman <email@hidden> wrote:
>>
>> It actually took one final, definitive step: overriding -[NSTableRowView drawRect:] to set the font of group source list rows to Bold System Font. I got the idea from a mailing list post a couple of years ago by Mr. Corbin, who I understand wrote the view-based NSTableView frameworks. Here's my -drawRect: override:
>
> I’m curious if doing this in -viewWillDraw also works. If so, I’d recommend switching to that to avoid unnecessary backing store allocation. (The superclass might be using -wantsUpdateLayer instead of -drawRect:.)


I'll give it a try and let you know. I already override -viewWillDraw in a related subclass, so it will be easy to do.

My concern is that Mr. Corbin's post specifically suggested overriding -drawRect:, and this might be because AppKit does some of its source list magic in super's drawRect:, which I call first in my -drawRect: override. Doing my stuff in -viewWillDraw might be too early to override AppKit's drawRect: stuff. We'll see.

--

Bill Cheeseman - email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >NSTableRowView appearance when group rows float (From: Bill Cheeseman <email@hidden>)
 >Re: NSTableRowView appearance when group rows float - SOLVED (From: Bill Cheeseman <email@hidden>)
 >Re: NSTableRowView appearance when group rows float - SOLVED (From: Bill Cheeseman <email@hidden>)
 >Re: NSTableRowView appearance when group rows float - SOLVED (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSTableRowView appearance when group rows float - SOLVED
  • Next by Date: Re: Preventing textfield in table from clicking default button
  • Previous by thread: Re: NSTableRowView appearance when group rows float - SOLVED
  • Next by thread: Re: NSTableRowView appearance when group rows float - SOLVED
  • Index(es):
    • Date
    • Thread