• 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
[NSTableView/NSOutlineView] How can we draw a custom border?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSTableView/NSOutlineView] How can we draw a custom border?


  • Subject: [NSTableView/NSOutlineView] How can we draw a custom border?
  • From: Stephane Sudre <email@hidden>
  • Date: Sat, 8 Mar 2008 19:21:24 +0100

I would like to draw a custom dashed border for a specific NSOutlineView (*).

I sub-classed NSScrollView to do this. The problem is that the NSTableHeaderView is drawn after and over the NSScrollView. And so the topline of the NSTableHeaderView is drawn over my nice dashed line.

I'm looking for a simple way to clip the NSTableHeaderView drawing so that it does not draw over my border.

So far I've tried or investigated the following things:

- changed the size and position of the _headerClipView

- categories of NSTableHeaderCell, NSTableHedaerView

- looking for a private method.

- changing the clipping area from different location.

Maybe it's possible in IB 3 to set the class for the NSTableHeaderView of a NSOutlineView but this would ruin my nib file since I'm developing on Tiger.

Any tip?




(*) don't worry about the HIG, it makes sense in this case. _______________________________________________

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


  • Follow-Ups:
    • Re: [NSTableView/NSOutlineView] How can we draw a custom border?
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Core Data and indexed attributes question (from a CD noobie)
  • Next by Date: Re: Binding NSTabViews in NSCollectionViews?
  • Previous by thread: Re: Core Data and indexed attributes question (from a CD noobie)
  • Next by thread: Re: [NSTableView/NSOutlineView] How can we draw a custom border?
  • Index(es):
    • Date
    • Thread