Questions tagged [nstreecontroller]

The NSTreeController is a bindings compatible controller that manages a tree of objects. It provides selection and sort management. Its primary purpose is to act as the controller when binding NSOutlineView and NSBrowser instances to a hierarchical collection of objects. The root content object of the tree can be a single object, or an array of objects.

The NSTreeController is a bindings compatible controller that manages a tree of objects. It provides selection and sort management. Its primary purpose is to act as the controller when binding NSOutlineView () and NSBrowser () instances to a hierarchical collection of objects. The root content object of the tree can be a single object, or an array of objects.

132 questions
0
votes
1 answer

Filtering children of NSOutlineView with NSTreeController

I am developing a Mac app which uses Core data. I am using NSOutlineView and NSTreeController to bind data on view. You can assume the structure of my data as Parent Item 1 Child Item 1 Child Item 2 Child Item 3 Parent Item 2 Child Item…
emreoktem
  • 2,409
  • 20
  • 36
0
votes
1 answer

Placing items from a Core Data entity into an NSOutlineView programmatically?

Sorry if this seems like a silly question - I am an amateur when it comes to Objective-C and Cocoa and even less knowledgable when it comes to Core Data usage. So here's the situation: I have an NSOutlineView that I've already populated with a few…
0
votes
1 answer

NSTreeview Duplicating my objects

My very early steps in OS X development. NSTreeview bound to an array which includes various proxy objects of custom class. Some of those objects are bound to my Core Data Store so that my sidebar includes lists of several different NSManagedObject…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
0
votes
1 answer

NSTreeController - Retrieving selected node

I added Book object in bookController (NSCreeController). Now i want to get stored Book object when i select the row. - (IBAction)addClicked:(id)sender { NSTimeInterval timeStamp = [[NSDate date] timeIntervalSince1970]; // NSTimeInterval is…
user869123
  • 257
  • 4
  • 15
0
votes
1 answer

How to dynamically update an NSTreeController and NSOutlineView?

When an outlineViewItem is expanded - (void) outlineViewItemDidExpand:(NSNotification *)notification -, I'm able to successfully add an object to the TreeController (log statements show the newly added object in the correct place of the…
Ryan D'souza
  • 653
  • 11
  • 22
0
votes
1 answer

Remove NSElements from display from a NSOutlineView or NSTreeController

How can I, in a NSOutlineView, binded to a NSTreeController, driven by an NSXMLDocument, only display some NSElements (of the same type) and not others? Thanks
0
votes
1 answer

Why is -removeFromParent in SKNode throwing this exception?

The exception is: -[__NSArrayI removeExactObject:]: unrecognized selector sent to instance I want to have a representation of a SKScene in a NSTreeController, for that I’m using a Proxy class that holds a strong reference to a SKNode and to its…
rraallvv
  • 2,875
  • 6
  • 30
  • 67
0
votes
1 answer

NSTreeController: how do I find the parent of a node?

I'm looking for a similar method to: NSOutlineView parentForItem: for NSTreeController. I need to know the parent of a node in the tree.
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
0
votes
1 answer

How to configure NSTreeController in Interface Builder

When I select an NSTreeController in Interface Builder (in Xcode 4.6.3) and look at the attributes inspector, I see two sections named Tree Controller and Object Controller. The Tree Controller part makes some sense, but I'm having trouble finding…
JWWalker
  • 22,385
  • 6
  • 55
  • 76
0
votes
1 answer

NSTreeController produces a delay when removing a node

I use NSTreeController + NSOutlineView to display a large tree (with over 1K nodes). The tree is constructed with an adjacency list. In NSTreeController is turned on a LazyFetching. When I try to remove a node NSTreeController starts to fulfill all…
sim
  • 756
  • 6
  • 18
0
votes
1 answer

How do I set the default selection for NSTreeController at startup?

The Background I've built a source list (similar to iTunes et al.) in my Cocoa app. I've got an NSOutlineView, with Value column bound to arrangedObjects.name key path of an NSTreeController. The NSTreeController accesses JGSourceListNode entities…
0
votes
1 answer

Styling NSOutlineView Rows

I have a Document based Core Data app with an NSTreeController supplying the content to a view based NSOutlineView. I am "styling" (setting text colour, background colour etc.) the rows based on persistent "transformable" NSColor and NSFont…
0
votes
1 answer

Core Data, populating mandatory relationship from a newly created NSManagedObject

This should be easy, how difficult can it be. I have a document based core data application with a very simple data model. I have a "node" entity with a parent/children relationship to itself controlled by a NSTreeController, and viewed through an…
0
votes
1 answer

Remove all items from NSTreeController

I would like to clear all items out of an NSTreeController that I added using Controller.AddObject. Is this possible? I presume it is possible to retrieve all the index paths, sort by depth in reverse and remove the items one by one, but I'm hoping…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
1 answer

NStreeController - NSoutlineView get cell binding object

I have the following scenario in a NSoutlineView: ParentObject [checkbox] - ChildObject 1 [checkbox] - ChildObject 2 [checkbox] Each checkbox has a binding set up to a bool value of the respective object in a…
1 2 3
8
9