Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7531531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:11:48+00:00 2026-05-30T05:11:48+00:00

I have a custom NSTableRowView implementation to display my data cells. The table also

  • 0

I have a custom NSTableRowView implementation to display my data cells. The table also contains group rows using a simple NSTextField.

In my custom row view I need to change the drawing of the bottom separator slightly depending on if the next row below is a data cell (i.e. my custom row) or a group header.

In the case of a group header I don’t have to draw the separator, otherwise I’ll end up with a 2px separator like shown in the screenshot.

Is there a way to get a reference to the next (or previous) NSTableRowView instance from [NSTableRowView drawBackgroundInRect:...]?

separators

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:11:50+00:00Added an answer on May 30, 2026 at 5:11 am

    Am I correct that your table view delegate implements -tableView:rowViewForRow:?

    If so, let the table view delegate help:

    1. Add a property drawsSeparator to your custom row class.
    2. In your row class, check the value of this property in drawRect and adjust your drawing accordingly.
    3. Set drawsSeparator on your row in rowViewForRow. You can invoke -tableView:isGroupRow: with row + 1 to determine whether the next row is a group (after checking to make sure you’re not on the last row).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have custom cell which contains number of rows in it.i want to write
I have custom control - using Win Forms, that contains four TextBoxes, all have
We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a
I have a custom field name front_sl_slider. I want to display all the posts
I have custom table view cell with images (loaded from app document directory), labels,
I have custom UIViewController which looks like this. @implementation UIViewControllerCustom - (id)init { self
I have custom server control contains templatefield when an out button clicked the field
I have custom objects I am binding to using ObjectDataSource. I have three-level binding:
I have Custom List to display image with it's name like below... public class
I have custom error pages setup using <customErrors mode=On defaultRedirect=~/Home/Error> <error statusCode=404 redirect=~/Home/PageNotFound />

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.