nscollectionview Questions

4

I'm trying to get my program to recognize a double click with an NSCollectionView. I've tried following this guide: http://www.springenwerk.com/2009/12/double-click-and-nscollectionview.html but wh...
Woodson asked 29/1, 2013 at 1:42

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

6

Solved

I've developed an app for Mac OS X Lion using its new view-based NSTableView, but as I want to port the whole app to Snow Leopard I'm trying to figure out the best way to emulate such a tableview. ...

6

I'm running into an issue with an existing app while trying to fix a few outstanding macOS 10.13 bugs. I have a small NSCollectionView that looks similar to the small monthly calendar in the Calend...
Boehmer asked 26/9, 2017 at 18:43

10

I have an NSCollectionView and I would like to hide the horizontal scroll indicators. I've tried collectionView.enclosingScrollView?.verticalScroller?.isHidden = true But it is not working. ...
Mcneill asked 9/4, 2018 at 1:45

2

I have a one-section collection view and would like to implement Drag and Drop to allow reordering of the items. The CollectionViewItem has several textviews showing properties form my Parameter ob...
Thanatopsis asked 18/2, 2017 at 12:44

2

Solved

I have noticed a memory leak in NSCollectionView through Instruments. When I track down to the code, it shows the specific line below: collectionView.makeItem(withIdentifier: identifier, for: inde...
Narcisanarcissism asked 18/6, 2018 at 20:0

2

I have an NSCollectionView with a few NSViews in it. The NSView has an NSBox in it that changes color when it is selected. I want to also make the NSBox change color when hovered over. I subclass...
Kure asked 31/1, 2013 at 21:59

8

Solved

I have an NSCollectionView that contains a collection of CustomViews. Initially it tiled the subviews into columns and rows like a grid. I then set the Columns property in IB to 1, so now it just d...
Sandbag asked 21/1, 2010 at 8:12

3

Solved

I have a NSCollectionViewFlowLayout which contains the following: - (NSSize) itemSize { return CGSizeMake(self.collectionView.bounds.size.width, kItemHeight); } // End of itemSize - (CGFloat) mi...

3

Solved

I've bounded the menu to the NSCollectionView in interface builder. But when I CTRL+click (right click) on it the menu is not showing. I've tried adding some method to the NSCollectionView subclas...
Jueta asked 11/2, 2016 at 10:23

3

I have sucessfully implemented a 10.11 version of NSCollectionView in my Mac app. It displays the 10 items that I want, but I want the first item to be automatically selected when the app starts. ...
Fletcherfletcherism asked 4/2, 2016 at 17:14

5

I want to filter a ObservableCollection with max 3000 items in a DataGrid with 6 columns. The user should be able to filter in an "&&"-way all 6 columns. Should I use LINQ or a CollectionV...
Klayman asked 5/10, 2010 at 20:26

5

Solved

In my OSX app I have a collection view which is a subclass of NSCollectionView. I'm all satisfied with how the things are except the contextual menu, which I can't figure out yet. So what I want ...
Bounded asked 30/9, 2014 at 22:1

4

NSCollectionViewFlowLayout produces a layout with items justified on the right margin or, if the container is only wide enough for one item, centres items. I was expecting an alignment option, e.g....

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

9

Solved

I have a working NSCollectionView with one minor, but critical, exception. Getting and highlighting the selected item within the collection. I've had all this working prior to Snow Leopard, but so...
Thermotensile asked 29/3, 2010 at 21:59

3

I'm again struggling with setting NSViews background colors to transparent. I have a NSCollectionView as part of NSClipView which is part of a NSScrollview. My MainViewController has an outlet to t...
Expiate asked 5/2, 2017 at 23:3

2

Solved

I have a window with 3 NSTableViews and 1 NSCollectionView. The collectionview displays images. I want to be able to select one of the images and delete it using the keyboard delete key, but I can'...
Credo asked 5/9, 2017 at 12:52

8

Solved

When you drag a NSCollectionView to a view, a NSCollectionViewItem appears on the storyboard, floating around. Imagine I drag several NScollectionViews to the same view. I will have a bunch of NS...
Underrate asked 24/10, 2014 at 6:57

1

AppKit Release Notes for OS X v10.11 suggests that collection view items can be resized on a per-item basis: Item size can be determined globally for all of a CollectionView’s items (by setting ...

3

Solved

I'm coming from the iOS development and I am wondering if there is a way to set up a NSCollectionView programmatically like a UICollectionView in iOS? And add the NSCollectionViewItems in code. Or ...
Herzegovina asked 5/5, 2015 at 19:31

2

Solved

How do I set an action for when a user double clicks an NSCollectionViewItem. NSTableView, for example, has the setDoubleAction method. Is there something similar for NSCollectionView? Thanks
Monomania asked 12/10, 2009 at 0:39

2

I have created collection view and I am unable to give space between the collection view items. So please help.... Thanks in advance... I have used this link to create collection view https://andr...
Friederike asked 18/11, 2014 at 12:59

2

Solved

I am trying to create a NSCollectionView programmatically using a NSCollectionViewDataSource. The code is very simple: self.collectionView = [[NSCollectionView alloc] init]; // Add collection vi...
Pantagruel asked 26/3, 2016 at 2:23

© 2022 - 2025 — McMap. All rights reserved.