Questions tagged [nscollectionviewitem]

101 questions
0
votes
1 answer

Xcode: NSCollectionViewItem does not have an outlet named imageView or textField

I would like to link an imageView and a textField in my xib grafical user interface to the belonging Outlets from the NSCollectionViewItem (which is an element from the application kit). But while linking the bindings following message pops…
3ef9g
  • 781
  • 2
  • 9
  • 19
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

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
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
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…
0
votes
0 answers

Loading wrong xib file

Maybe I'm stupid but I spent the whole afternoon trying to figure out this one. I'm an Objective C novice, but have plenty experience in other languages. I have two NSCollectionView - *eventsView and *projectsView inside a menu. Each with its own…
Miha Rekar
  • 1,237
  • 12
  • 15
0
votes
1 answer

NSCollectionViewItem, size to content

I have an NSCollectionView, which I'm binding to a collection of strings. The view that I'm using for my NSCollectionViewItem is very simple, it simply contains an NSTextField. NSView - NSTextField The length of the strings is variable. Is there any…
0
votes
1 answer

NSArrayController selectedIndex is always zero

I have a NSArrayController bound to an array in one of my objects. I have a object inheriting from NSObject which is added to the nib file containing the NSArrayController. That object has a property called textureAtlas of type TextureAtlas (a type…
0
votes
1 answer

Get the index of view from which a button was clicked in a NSCollectionView

I have a NSCollectionView and I am adding my custom view which acts as NSCollectionViewItem for that collection view. In my collectionViewItem, I have a NSButton along with various other elements. I have a method onButtonClick which is connected to…
Vikram Singh
  • 1,726
  • 1
  • 13
  • 25
0
votes
1 answer

how to set action for a button inside the NSCollectionViewItem

I was using an NSCollectionView to show a list of pictures in the binded array controller, also, I want to add a delete button on the left-top corner of each picture so that when someone press the button, it will remove the corresponding object in…
0
votes
1 answer

Display NSPopover in NSCollectionView?

(Note: question has been asked before, with less-than-conclusive results over a year ago. Hopefully we know a bit more now and can solve it?) I'm trying to make an NSPopover display over an NSCollectionItem when it is double-clicked. My…
1 2 3 4 5 6
7