Questions tagged [nscollectionview]

NSCollectionView is a NSView subclass which provides basic functionality for displaying, arranging, grouping and manipulating graphical representations of collections of objects.

NSCollectionView is a NSView () subclass which provides basic functionality for displaying, arranging, grouping and manipulating graphical representations of collections of objects.

Xcode 7 introduced a new API for NSCollectionView so that it can be implemented similarly to the iOS counterpart (UICollectionView). In OS X 10.11+ you can access NSCollectionView using its datasource and delegate protocols.

428 questions
0
votes
1 answer

NSCollectionView subclass doesn't call drawRect during drag session despite setNeedsDisplay

Greetings, I am puzzled as to how and when drawRect is supposed to be called in a NSCollectionView subclass. I implement drag and drop operation in order to move NSCollectionViewItems within the collection, and would like to draw a visual indication…
Alain Vitry
  • 158
  • 2
  • 11
0
votes
1 answer

Valueurl Binding On Large Arrays Causes Sluggish User Interface

I have a large data set (some 3500 objects) that returns from a remote server via HTTP. Currently the data is being presented in an NSCollectionView. One aspect of the data is a path pack to the server for a small image that represents the data…
Hooligancat
  • 3,588
  • 1
  • 37
  • 55
0
votes
1 answer

Objective C - NSCollection w/NSArrayController refresh not consistent

I've written a program that plays a queue of songs that is processed in a background task using delegates. I send responses back to AppController to move a NSSlider show progress of song being played and deleted the NSCollection View entity (the…
Bob Fields
  • 25
  • 8
0
votes
1 answer

How to sort NScollectionview in ascending order with arrayController?

I have a collection View XIB in Xcode and this is binding to an array controller. I need to display the items in the array controller to the collection view in ascending order but it doesn't working. It displays in random order(i…
Ryan Moon
  • 1
  • 2
0
votes
1 answer

Binding to both the checked state and string value of NSCheckBoxes in an NSCollectionView

I need to create an NSCollectionView which contains NSCheckBoxes. When I do this for something like labels I can bind to the control's value. But when dealing with NSCheckBoxes I need to bind to both its value (checked or unchecked) and it's text…
RobertJoseph
  • 7,968
  • 12
  • 68
  • 113
0
votes
1 answer

NSCollectionViewItem button always returns first item from ArrayController

I have an NSCollectionView with NSArrayController bound to NSCollectionViewItem. The Item itself contains button (the whole space of Item). When the button clicked I'm trying to determine on which item button was clicked, but…
0
votes
1 answer

NSCollectionView Master detail binding configuration

I have the following models in my application. Board, holds a NSMutableArray property lists of type List below List, holds a NSArray property cards of type Card below Card, has a NSString property name The relationship is thus Board --> to-many…
0
votes
1 answer

NSCollectionView with a network image

I have a NSCollectionView where one of the subviews is an NSImageView. The actual image requires loading from a webserver after going through an API call (so actually two network requests). Obviously I need to load the image asynchronously. I can…
jsd
  • 7,673
  • 5
  • 27
  • 47
0
votes
1 answer

NSCollectionView, How to send representedObject to code on Double Click?

I am using bindings for the first time on a core data store with a one to many relationship on my entities, I display the subItems using an NSCollectionView which shows an image and a title. Objects are: Subitems Array Controller…
GeoffCoope
  • 952
  • 9
  • 20
0
votes
1 answer

isOpaque not stopping passing to parents drawRect

I got a problem with Cocoa and its View redraw hierarchy. I'm currently testing displaying (audio) levels in a meter style control and I'm using the MeteringView class from MatrixMixerTest example project from apple. This class is drawing the meter…
0
votes
1 answer

Detect last visible nscollectionview item prototype

How is it possible to detect in NSCollectionView when the last item is visible on scrolling ? I was looking for a similar solution as this but NSCollectionView doesnt have a similar layout methods. Any hints ?
user88975
  • 1,618
  • 3
  • 19
  • 29
0
votes
1 answer

How do I get the representedObject from an NSTextView in an NSCollectionViewItem

Similar to this question (Get the representedObject values of NSCollectionViewItem NSButton click) that asks how to get the representedObject of an action invoked from an NSButton, how do I get the representedObject of an action invoked from an…
Zag
  • 819
  • 1
  • 8
  • 12
0
votes
0 answers

Binding NSTableView inside NSCollectionView

I have been able to successfully bind my view to an NSCollectionView, however my model is not binding to the view itself correctly. My model contains a few properties: @interface MPReportBuilderCustomReportFilter : NSObject @property (assign)…
0
votes
0 answers

Nested NSCollectionView Error (with Binding) "[_NSClipViewOverhangView delegate]: unrecognized selector sent to instance 0x600000122c60"

I am trying to make a Wolfram | Alpha searcher in XCode 5. Using the API I need to access the pods (the first level of NSCollectionView) and the subpods (The nested NSCollectionView). I have a pod class (properties: podTitle [NSString] and subpods…
0
votes
1 answer

Click in view of NSCollectionViewItem

I'm new to Cocoa dev, so many concepts of it are not clear to me... I'm trying to build a simple app which will use Flickr API to retrieve user photosets and show them in a NSCollectionView, by clicking them, will start to download the photos of the…