NSRulerView Browser NSTableView?

A very simple scenario:

I have an NSTableView in my tip with an output pointing to it. My application delegate has the following:

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    NSScrollView    *scroller = [tableView enclosingScrollView];

    [scroller setHasVerticalRuler: YES];
    [scroller setRulersVisible: YES];
}

The ruler displays the top of the headings of my tables (any content):

Tableview with ruler overtop

See how column 1 is only partially visible. If I try the same with the text view, then it works fine, the cursor gets indented and the text is clearly visible:

Textview proper

Can someone point out what I'm doing wrong?

Edit: I found that this is a problem with Yosemite that did not exist in older versions of OS X. I sent bug reports, but I think now there will be a question, does anyone know of a workaround?

A sample project has been uploaded here .

+4
1

NSScrollView, . , , column1 , , .

, :

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    NSScrollView    *scroller = [tableView enclosingScrollView];

    [scroller setHasVerticalRuler: YES];
    [scroller setRulersVisible: YES];

    NSPoint pointToScrollTo = NSMakePoint ( -25 , 0 );
    [[scroller contentView] scrollToPoint: pointToScrollTo];
    [scroller reflectScrolledClipView: [scroller contentView]];
}

, .

+1

All Articles