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

NSScrollView documentView cannot be scrolled

Coming from an iOS background, I presumed that NSScrollView would work out of the box, and I presumed that contentSize would reflect the size of the documentView passed to it. This is not the case, if the NSScrollView is created…
Kalle
  • 13,186
  • 7
  • 61
  • 76
0
votes
2 answers

Scroll NSScrollView contents to specific point, programmatically

OK, this thing has been bugging me for quite some time. I've got an NSScrollView (X= 258, Y= 322, W=516, H=653) with a view in it (X= -283, Y= -215, W= 1800 H= 1800), and I'm desperately trying to make it scroll to the top-left corner. I've tried…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
1 answer

NSScrollView has space at the bottom and scrollbar always at bottom in Cocoa

I created a NSScrollView and add custom NSVIew in it but when run, it always has a space at bottom and the scroll bar always at bottom. Now, i want to scrollview fit with custom view and scrollbar always at top. This is my code: float…
0
votes
1 answer

Scrolling an NSTextView to an exact rect?

I've got an NSTextView, inside an NSScrollView, and I want to scroll it to exactly where it used to be after repopulated the NSTextView with new data. So far, I've tried variations on the code below, but it never gets it quite right. What I need is…
MT.
  • 227
  • 1
  • 12
0
votes
1 answer

How to add a button or image to a vertical table header of scrollview?

I have seen a lot of programs had some buttons or images in the vertical or horizontal scrollview table header or bottom and click it to invloke some events, But I have searched interface builder library and not found some widget I can used , how…
jin
  • 2,145
  • 5
  • 27
  • 44
0
votes
1 answer

NScrollView don't work with opened image

I have scrollview added with interface builder its implemented in NSWindow view and in NSScrollview i added CustomView i'm using this code line in my AppDelegate.m - (void)awakeFromNib id docView = paintingfield; id viewas = [[NSScrollView alloc]…
LeTadas
  • 3,436
  • 9
  • 33
  • 65
0
votes
0 answers

Table content is jumping when resizing

This problem just occurs in Mac OX 10.6 (10.7, 10.8 isnot). The problem is recorded in the movie clip: http://www.youtube.com/watch?v=WRyPSkgh5HY Are there any solution? Thanks in advance!
teddy
  • 197
  • 2
  • 15
0
votes
1 answer

Fluid swipe and scrolling 10.7 style

I'm looking to add two finger "fluid swiping" to my app. Anyone who has used the week view in the Calendar app that comes with OSX will have seen what I'm trying to do. I have a scroll view, and I want to be able to use swipe gestures and scrolling…
lateAtNight
  • 482
  • 4
  • 13
0
votes
1 answer

NSScrollView overlapping text

I have an implementation that abstracts from NSView to display a scrolling text view. I have a long string I'm displaying on a custom class based on NSView. As soon as it starts to scroll the lines overlap one another and become unreadable. At the…
Finley
  • 1
  • 3
0
votes
1 answer

Scrollable large NSDocument on Macbook Pro 13" XGA display

I'm having all kinds of trouble understanding how NSWindows can have larger documents than the window bounds in them. Unfortunately, layout and contents prevents me from simply shrinking the document (and I wouldn't want to make the layout cramped…
Henrik Erlandsson
  • 3,797
  • 5
  • 43
  • 63
0
votes
1 answer

Not expanding NSScroller

The NSScroller automatically expands it's width when the user hovers over it. However, the document view has pretty little space, and this is why the scroller should not expand. How can I disable this behaviour?
IluTov
  • 6,807
  • 6
  • 41
  • 103
0
votes
1 answer

NSScrollView incorrect scrolling

I have NSScrollView in witch is placed NSClipView with NSOpenGLView inside. When I try to scroll for example to the left. Its OK. But if I then want to scroll to bottom, bottom scroller jumps to right. The same is happening if: I scroll to the…
hockeyman
  • 1,141
  • 6
  • 27
  • 57
0
votes
0 answers

Specific behaviour wanted when loading and displaying an image in an NSScrollView (Mac OS X)

I am very unexperienced and rather new to Objective-C and I'd like to ask a methodical question. What I want to do is: Load a user provided image to show on the screen. The user should be able to zoom. So it seems best for me to use a NSScrollView…
DaPhil
  • 1,509
  • 4
  • 25
  • 47
0
votes
1 answer

PXListView drag and drop is not doing working

i have created the NSViewController for managing the PXListView....delegate is connect with File owner... here everything is working as per the expectation..except drag and drop... while dragging it is not entering into the dragging delegate…
mammaiap
  • 11
  • 2
0
votes
1 answer

NSScrollView generating scrollbar ghosts

Please see attached image: http://i45.tinypic.com/fu8bpz.png Has anyone every seen this kind of weird scroll bar behavior? I embedded a custom view in an NSScrollView. The scroll bars do not appear to be drawing correctly, and they also appear in…
kernelK
  • 189
  • 1
  • 3
  • 14