nscollectionview

NSCollectionView for Cocoa-Touch (iPhone/iPad)

Is was starting to implement one but was wondering if somebody knows about an already existing NSCollectionView like class for cocoa touch. ...

Selection Highlight in NSCollectionView

On some occasions my head just hurts from banging it against the Cocoa wall. Today is one of those days. 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 something appears to have changed and ...

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 (think thumbnail for simplicity). Bindings works fantastically for the data that is already r...

A way to forward events to multiple views with a NSCollectionView

Hi, I am trying to forward a keyboard event from the Collection View to all the views it contains. I've tried figuring out how to obtain an array of the views so that I could forward the event to each view, but I could not find a way to do this. I feel that I am going about this the wrong way. Any direction is appreciated. Thank you, ...

How to imitate the workflow view of Automator?

I’m starting to develop my first full-blown Cocoa application containing a view which I would like to behave (and look) similar to Automator’s AMWorkflowView. The basic features I’d like to achieve: Positioning of subviews Display of subviews in expanded / collapsed states Multiple selection Drag and drop In order to get accustomed...

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 of where the drop would end. The subclass does not call drawRect during the drag sessi...

Accepting drag operations in an NSCollectionView subclass

I've subclassed NSCollectionView and I'm trying to receive dragged files from the Finder. I'm receiving draggingEntered: and returning an appropriate value, but I'm never receiving prepareForDragOperation: (nor any of the methods after that in the process). Is there something obvious I'm missing here? Code: - (void)awakeFromNib { [...

Using Core Data with an NSCollectionView

I have an NSCollectionView and I want to use it with Core Data the same way as I would with an NSTableView, preferably with bindings. Can anyone point me in the right direction? Thanks ...

displaying web pages over web views in collection view using cocoa bindings

Hi all, I tried sample example given at this link - Collection View Programming Guide It is simple and it worked. Considering it as a reference I tried a simple application which will show a collection view of web views with some web page displayed over each web view. The model class has two properties: NSString *pageName, and NSURL *...

How can I make NSCollectionView finish drawing before the view containing it is made visible?

Hello, I'm trying to clean up the UI on my application (built for 10.5) and one thing that's rather annoying is that when I swap to the library I reload the contents and the nscollectionview that displays the items fades the old content out before fading the new ones in. I don't mind the fade in/out of old/new items, but the way i've pr...

Index of item within NSCollectionView

In my collection view I need to generate an index for each item. As Items get reordered I need this index to update with its new position. The data are Core Data entities in a managed NSArrayController. The closest I have come to a possible solution is implementing this method on the entity class and then using representedObject.dynamic...

Clear example and best approach to NSCollectionView

Hi there. I looked for this on the web, but I could not find any clear tutorial on how to successfully implement an NSCollectionView. How should I proceed? In Interface Builder, I can drag an NSCollectionView to the main view, and I see that there are two other new views in the documents window: I suppose one is the actual NSView insi...

Alternative to NSCollectionView in pre-OSX10.5, Cocotron?

NSCollectionView was introduced in OS X 10.5, and is not yet implemented in Cocotron. I am trying to implement a small app that will allow creating properly packaged data files for an online service, which will then be uploaded by an administrator. More specifically, the user will create a collection of input and output data pairs, by d...

NSCollectionView inside another NSCollectionView

Hi guys, I have these two classes: @interface Father : NSObject { NSString* name; NSArray* listChildren; } @property (copy, readwrite) NSString* name; @property (copy, readwrite) NSArray* listChildren; @end @interface Child : NSObject { NSString* nameChild; NSImage* picture; } @property (copy, readwrite) NSStrin...

Filter a collection with LINQ vs CollectionView

Hello, 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 CollectionView for it? LINQ seemed faster trying some www samples. Do you have any pro/cons? UPDATE: private ObservableCollection<Material> _materialLi...

Drawing over an NSCollectionViews subviews

I have the following code in an NSCollectionView subclass: -(void)drawRect:(NSRect)rect { if(!NSEqualRects(highlightBox,NSZeroRect)) { [[NSColor colorWithCalibratedRed:1.0f green:0.2f blue:0.2f alpha:1.0f] set]; NSRectFillUsingOperation(NSInsetRect(tempHighlightBox, -1.0, -1.0),NSCompositeSourceOver); ...