Questions tagged [nsscrollview]

Apple OS X Developer API : NSScrollView class is the central coordinator for the Application Kit’s scrolling machinery

548 questions
0
votes
1 answer

Custom view in a NSScrollView scribbled upon scroll

I've got a custom view called SequenceView in a NSScrollView. It should draw 20 red rectangles in a column. The problem : the rectangles are damaged/not drawn/drawn partially upon vertical scrolling. Before and after the scroll: -…
LiMar
  • 2,822
  • 3
  • 22
  • 28
0
votes
1 answer

Scrolling a NSScrollView not working

I'm trying to scroll an NSScrollView to the bottom of the view using this code: NSPoint newScrollOrigin; if ([[self.chatScreen documentView] isFlipped]) { newScrollOrigin=NSMakePoint(0.0,NSMaxY([[self.chatScreen documentView]…
Alex
  • 1,388
  • 1
  • 10
  • 19
0
votes
0 answers

NSScrollView Elasticity

I had created a basic UIRefreshControl imitation in Mac apps using NSScrollView elasticity. This works fine in MacBooks and in an iMac but not in Mac Mini. It doesnt seem to have the elasticity in Scroll View. Is it a system setting or is this…
user88975
  • 1,618
  • 3
  • 19
  • 29
0
votes
2 answers

How do you use NSScrollView with auto layout?

Ok. I've been at this over and over. I've seen blogs and cocoa dev threads. I've seen Kyle Sluder's proposed solution, but have yet to find a solution that really works. How can you position subviews of an NSScrollView with auto layout? Is it just…
uchuugaka
  • 12,679
  • 6
  • 37
  • 55
0
votes
1 answer

Custom NSView in a NSScrollView that takes up the whole visible space

I have a custom NSView subclass, and I put it in a NSScrollView, and the basics are working fine. It always takes up the full width of its available space, so its constraints take up the whole width of the scroll view. How much vertical space it…
0
votes
1 answer

Show contents of two merged directory listings

I would like to merge the two directories listings (already done and works they show up in NSTableView), but also display the contents of the files in an NSScrollview, now the problem lies in iterating through the list, and I couldn't figure out how…
Jeremiah Smith
  • 740
  • 6
  • 17
0
votes
1 answer

How to place items in a NSScrollView

When I try to place objects using the Interface Builder in Xcode into a NSScrollView, they appear fine until runtime in the application, where they do not appear at all for some reason. I want it to be so that I can place multiple buttons and labels…
0
votes
1 answer

NSScrollView with CA layer mask adds a second useless scrollbar

I added a custom NSScrollView for a table, and in order to keep everything masked within the window shape I used core animation layer masks to clip it and it's subviews like so: - (void)drawRect:(NSRect)dirtyRect { [super drawRect:dirtyRect]; …
Luke
  • 4,908
  • 1
  • 37
  • 59
0
votes
1 answer

How to detect the mouse event is vertical scrolling or horizontal scrolling

How to detect the mouse event is vertical scrolling or horizon scrolling in NSScrollView? thanks.
CocoaUser
  • 1,361
  • 1
  • 15
  • 30
0
votes
1 answer

NSScrollView printing inverted on OSX Mavericks

I have a Mac app that has been on the app store for a few years. It's a time tracking and invoicing app that creates a PDF for the invoice. The PDF is generated from the content of a window in the app that contains the invoice information. Before…
siannopollo
  • 1,464
  • 11
  • 24
0
votes
1 answer

How can I calculate the point to scroll to given a point inside the scrollview's image?

I get a point at an image inside the nsScrollView. It could be anywhere inside the image. I want to calculate the new point to scroll to ? How can I do that? The iamage is inside an imageview inside the scrollview. [NSAnimationContext…
zzzzz
  • 1,209
  • 2
  • 18
  • 45
0
votes
2 answers

Wrong postion when plotting an nsiamgeview over an nsscrollview?

I have an NSScrollview which has a large imageview inside it.I am trying to plot an imageview programatically over the imageview inside the nsscrollview. Think of it like this.I have a worldmap(NSImageView) inside an NSScrollView.The user selects a…
zzzzz
  • 1,209
  • 2
  • 18
  • 45
0
votes
1 answer

views, buttons in nsscrollview not appearing anymore

In my Xcode4 projects I was using the Interface Builder to add scrollviews to my xibs. After that I could drag other buttons or views into that scrollview so that they appeared as expected when the app started. Strangely after switching to Mavericks…
0ax1
  • 475
  • 3
  • 11
0
votes
2 answers

NSScrollView sometimes has a black bar instead of scroller

In my document based OS X app, I have an empty NSScrollView in the xib, with "show vertical scroller" set. At run time I generate a view with buttons for navigation, which I set as the document view for the NSScrollView. Most of the time, this works…
Steven Hovater
  • 1,389
  • 2
  • 12
  • 25
0
votes
1 answer

drawBackgroundInRect not called in layer backed view

I have an NSScrollView which is set to be layer backed by clicking the layer checkmark on the scrollview in IB. Within that scrollview I have an NSTableView. In that NSTableView I use a custom NSTableRowView to draw a vertical red line at the…
Tap Forms
  • 912
  • 8
  • 16