nsscrollview Questions
6
I can't get scrolling both vertically and horizontally to work with a custom layout for NSCollectionView.
According to the docs, in my subclass I return the collectionViewContentSize and if that is...
Porphyrin asked 24/6, 2016 at 14:50
4
Solved
Is there any way to overlay the NSScroller over the content of the scroll view (like in iOS)? I've already tried several approaches:
a) setting the frame of the scroll view content view (NSClipVie...
Ditmore asked 21/11, 2010 at 2:55
6
Solved
I'm making a Mac app which needs to know when the user is scrolling the NSScrollView, however, I can't find any methods like UIScrollView, which has the following delegate methods:
– scrollViewDid...
Africa asked 2/3, 2011 at 15:2
3
Solved
I first tried disabled the scroll bar by setting:
scrollView!.hasHorizontalScroller = false
and that successfully worked, but I could still scroll from left to right by using my trackpad.
Is the...
Agger asked 26/10, 2014 at 20:14
2
I'd like to disable scrolling of my WKWebView that's inside a NSScrollView on macOS in Swift.
I found a way to disable scroll inside the WKWebView with css, tho the WKWebView still stops the NSScr...
Taraxacum asked 14/5, 2017 at 8:36
4
Solved
I have an NSView class which takes care of a Custom View created in the nib file.
Now I want to add an NSScrollView to the custom view, but I need to do it programmatically and not using Interfac...
Teryn asked 4/4, 2012 at 17:42
7
Solved
Just started to learn Swift and created a little macOS app in which I want to use a NSScrollView to display an attributed String. I’ve tried:
@IBOutlet var ScrollViewOutlet : NSScrollView
var attr...
Subedit asked 7/8, 2014 at 9:33
6
Solved
I have implemented a custom NSView which contains many NSTextFields and other NSViews. I then embedded that custom view in a scroll view using Editor > Embed In > Scroll View. This creates the appr...
Jefe asked 24/3, 2015 at 19:43
5
Solved
I want to create soft animation between transitions in simply UI:
view that moved
When a call scrollToPoint: for move view to point that transition doesn't animate.
I'm newbe in Cocoa program...
Darryl asked 16/10, 2013 at 9:6
3
I have created a custom view that implements initWithFrame and drawRect. In IB, I created a window and placed the custom view in the center of the window. I then used Editor>Embed In>Scroll View to...
Moriyama asked 4/1, 2014 at 7:23
3
Solved
How can I find out whether my NSScrollView is currently scrolling?
On iOS I can use the delegate but despite of googling a lot I can't find a way to do this on the Mac.
Thanks in advance!
Peonage asked 16/12, 2012 at 13:0
3
As you can see in the screenshot below, the NSCollectionView I used has some kind of border (the thin gray lines) I want to get rid of. Can somebody tell me how to achieve this? I already tried sub...
Anatase asked 27/8, 2012 at 15:22
3
I read the document Synchronizing Scroll Views, and did exactly as the document, but there is an isssue.
I want to synchronize a NSTableView and a NSTextView. first let NSTableView monitor NSTextV...
Elephus asked 6/7, 2011 at 12:44
5
Solved
I need fixed-size NSTextViews inside a larger scrolling window. IB requires that the textviews be inside their own NSScrollViews, even though their min/max sizes are fixed so that they won’t actual...
Footstone asked 9/6, 2011 at 17:40
3
Solved
This seems like such a trivial question to ask, but it's been vexing me for a while.
I have a window which contains a scroll view. Typically, the scroll view has a documentView that is vertically ...
Bartolemo asked 28/7, 2010 at 7:37
3
I have a NSScrollview nested inside another NSScrollview. How do i make the inner view handle horizontal scrolling only? Vertical scrolling should move the outer view.
Currently i pass the scrollW...
Byplay asked 24/12, 2011 at 9:40
2
How do I center an NSView within an NSScrollView like the way "Preview" does?
Photochemistry asked 20/11, 2009 at 23:39
2
Solved
I have searched extensively and cannot for the life of me find any information about how to achieve a similar effect to that of the iTunes song title scrolling if the text is too large in Cocoa. I ...
Ascus asked 12/7, 2010 at 22:33
2
Solved
Is there a way to get the height of the content in an NSTableView. In iOS, you can use the -contentSize method of UIScrollView. However, the -contentSize method of NSScrollView seems to just return...
Oblong asked 4/7, 2012 at 3:41
6
I'd like to hide the NSScrollers of NSScrollView. I'm aware of the methods setHasHorizontalScroller: and setHasVerticalScroller:. However, if I disable the scrollers, scrolling in that direction ge...
Fibula asked 20/2, 2012 at 16:49
0
wkWebView for MacOS does not expose it's enclosing scrollView. My application fundamentally depends of WebView's scrollview. I would like to conform to Apple's recommendation by switching from WebV...
Thereabouts asked 27/4, 2018 at 19:58
3
Solved
I've got an OSX Cocoa app that has been built programatically (i.e., not with a NIB/XIB), which I'm trying to lay out using auto layout - but I'm getting some odd behaviour when the window first di...
Indophenol asked 11/6, 2014 at 15:15
3
Solved
I am porting an app from Ipad to mac. (I know that it sounds weird)
I stuck with NSScrollview. Please guide me contentsize , contentOffset equivalent in NSScrollview.
Blackstock asked 11/8, 2010 at 11:52
3
Solved
I have an NSView in which the user can draw circles. These circles are stored as an array of NSBezierPaths, and in drawRect:, I loop through the array and call -stroke on each of the paths. How do ...
Elbertelberta asked 15/3, 2010 at 1:31
5
Solved
Is there a simple way to disable scrolling of an NSTableView.
It seems there isn't any property on
[myTableView enclosingScrollView] or [[myTableView enclosingScrollView] contentView] to disable i...
Banquet asked 27/9, 2012 at 16:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.