FAQ Database Discussion Community


NSScrollView starting at middle of the documentView

cocoa,nsview,nsscrollview
I have the following code: [[ticketsListScrollView documentView] setFrame: NSMakeRect(0, 0, [ticketsListScrollView frame].size.width, 53 * [tickets count])]; [[ticketsListScrollView documentView] setFlipped:YES]; for(int i = 0; i < [tickets count]; i++) { TicketsListViewController *viewController = [[TicketsListViewController alloc] initWithNibName:@"TicketsListViewController" bundle:nil]; viewController.dateLabelText = tickets[i][@"date"]; viewController.timeLabelText = tickets[i][@"time"]; viewController.subjectLabelText =...

Objective-C NSScrollView Foreground Colour

objective-c,osx,nsscrollview,nscolor
I am getting into app development and just started using NSScrollViews to display large chunks of text. I am able to set the background colour by writing the following: [_HeadersScrollView setBackgroundColor:[NSColor darkGrayColor]]; But not set the foreground colour by doing something similar to: [_HeadersScrollView setTextColor:[NSColor whiteColor]]; // nope [_HeadersScrollView setForegroundColor:[NSColor...

NSScrollView blur in NSPopover

cocoa,nsscrollview,nsvisualeffectview
I have a couple of NSScrollViews inside an NSPopover in my app. I want to create a Safari-like blur with scrolled content on the top. However I can't find any solution, since it is an NSPopover and I cannot set the style mask. I tried adding a blank row with...

NSScrollView: fade in a top-border like Messages.app

objective-c,cocoa,core-animation,calayer,nsscrollview
What I Want to Do: In Messages.app on OS 10.10, when you scroll the left-most pane (the list of conversations) upwards, a nice horizontal line fades in over about 0.5 seconds. When you scroll back down, the line fades back out. What I Have: I am trying to achieve this...