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 876115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:22:53+00:00 2026-05-15T11:22:53+00:00

Within my Mac app I’ve setup two NSSplitViews to create a Mail-style interface (with

  • 0

Within my Mac app I’ve setup two NSSplitViews to create a Mail-style interface (with the first ScrollView used to create a vertical separator, and the second nested within the first, to create the horizontal separator). To illustrate the interface, I’ve created the following diagram:

alt text http://img96.imageshack.us/img96/1091/setupn.png

To illustrate the setup further, here’s an annotated snap of my view hierarchy:

alt text http://img714.imageshack.us/img714/8153/yayaj.png

The issue I’m having is that, when trying to grab the frames of two NSTableView’s hosted within portion B and C of my NSSplitView, I receive relative coordinates. Here’s the code I’m using:

NSRect aTableViewFrame = [aTableView frame];
NSRect bTableViewFrame = [bTableView frame];
NSLog(@"%@ %@", NSStringFromRect(aTableViewFrame), NSStringFromRect(aTableViewFrame));

Here’s the output I see:

{{0, 0}, {760, 143}} {{0, 0}, {760, 392}}

As you can see from the returned NSRect values, I’m given the correct width and height of the NSTableView, but what I’m really after is their position relative to the parent NSSplitView. Of course, I could use (a number of) IBOutlets and construct the correct rect value myself, but what I’m really looking for is an easy way to grab the frame of the NSTableViews relative to either the parent NSSplitView or the containing Window.

  • 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-15T11:22:54+00:00Added an answer on May 15, 2026 at 11:22 am

    If you have the split view, or get it by setting up an outlet, you could use convertRect:fromView:. Or to get window-relative coordinates, you could use convertRectToBase:. Bear in mind that the table’s frame would be relative to its superview, so you’d use something like [[bTableView superView] convertRectToBase: bTableViewFrame].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Within an asp.net MVC app, I'm trying to find rooms which have a guest/client,
I'm having trouble with a Mac App Store submission. I'm using the method below
Develop a Rails app on your Mac. Have a virtual Windows box using Parallels
Coding for PHP on Mac OSX Lion, using the following within the httpd.conf file:
Mac OS X 10.5 compatibility required. Xcode 3.2.5. My app looks in the bundle's
My latest Mac App got rejected from the Mac App Store. Basically it didn't
I am new to MAC development. I want to create a window with transparent.
I'm trying to crate a simple Mac paint application. On iOS I used UIGraphicsGetImageFromCurrentImageContext
I have a Mac application in the App Store and am looking to adopt
My iPad app encounters an EXC_BAD_ACCESS message within the call to CGPDFContextClose in the

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.