nstableview

Copy from one NSTableView to another (With Core Data Bindings)

Hi all, I have a NSTableView binded to core data. I have another NSTableView, currently not binded to anything ( but that can change if need be). When a press a button, I want the currently selected Row in the first table to be copied (but not removed) to the second table. e.g. Before: First Table Column1 | Column2 | Column3 Person...

How do I update a NSTableView when its data source has changed?

I am working along with Cocoa Programming For Mac OS X (a great book). One of the exercises the book gives is to build a simple to-do program. The UI has a table view, a text field to type in a new item and an "Add" button to add the new item to the table. On the back end I have a controller that is the data source and delegate for my NS...

Displaying data from multiple entities in a single NSTableView (Core-Data)

Hi there, I have an entity called Pupil, and an entity called Loan. The Pupil entity has the attributes: firstName, lastName, address, postCode, telephoneNumber. The Loan entity has the attribute: loanID, and the relationship: pupilID, which is a relationship to the entity Pupil. I wish to display the loanID, with the pupil (if any) re...

NSTableView keyDown: and mouseDown:

I've been working on a menubar note-taking application for Mac. It is written in Objective-C and Cocoa, and I'm using BWToolkit with it. My problem is getting keyDown: and mouseDown: events in a BWTransparentTableView which is a subclass of NSTableView. I just can't get it to work. I've tried searching the Internet, and some places say t...

Printing an NSTableView

Hi all, I'm trying to print an NSTableView, but most of the table keeps getting cut out. My question is twofold: How can I get it to resize to fit one page? How can I get it to print landscape? If there's a better way to do it, without using the print: function, then I'm happy to receive those suggestions too! (The Table is binded t...

How to make NSTableView scroll to most recently added row?

Hi, I'm dynamically adding rows to an NSTableView. When I issue [table reloadData] I can see the scroll view move and if I move it by hand I can see the new value on the table. But how can I scroll it automatically? ...

Make a table row's text editable immediately

I have an NSTableView in my user interface, where new rows are added when the user presses a button or keyboard shortcut. Each row consists of two text cells (the table is comprised of two columns). Is there a way to immediately select the first text cell of a new row which is added? So, basically, I would like the user to be able to pr...

Display data from NSArray in NSTableView

Hi all, I have a problem, and I reckon there's a really straightforward solution to it, but I can't fathom it out! I have this piece of code: NSManagedObjectContext * context = [[NSApp delegate] managedObjectContext]; NSManagedObjectModel * model = [[NSApp delegate] managedObjectModel]; NSDictionary * entities ...

Can't get NSTableView to display data.

Hi! I see there are a lot of questions about this, but nothing helped me to get this work. I have a nib with a NSTableView with three columns (with the right identifiers set) and a class named ShortcutsTableController. In the nib I have a NSObject with class value ShortcutsTableController. I also connected the NSTableView to my controlle...

Tinkering under the hood with Bindings in Xcode

Let's take two Core Data entities, set up as follows: Entity A: Car Attributes: year model Relationships: manufacturer (<<-> Manufacturer) Entity B: Manufacturer Attributes: name country Relationships: cars (<->> Car) Now, what I want to do is bind the display to an NSTableView where we have the model of th...

nstableview + cannot show partial file names

Hi there, I am using Table View Control. In the control, I show File/Folders details, if I reduce the size of file/folder name column, it does not show partial file/folder name (whatever characters can be shown in the Column). If a file name has multiple words in it, if enough space is not there to show a word then that word does not g...

Objects removed from NSArraycontroller stay in table until clicked

I have an NSArraycontroller which is bound to my application's AppDelegate's managedObjectContext. It acts as a download queue. Items are added to the NSArraycontroller programmatically I have a table which shows two of the fields in this, each a column with its value individually bound to the the said NSArraycontroller. When a new down...

Customizing NSTableVIew

How could I change the background of each row of a NSTableView? ...

Making a Method be triggered when a row is selected in a Table View.

How would I trigger a Method when a row in a Table View is selected? ...

display text with many clickable URLs

Hi, I'm using custom NSCell in NSTableView similar to: http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ I wish to display text with many clickable URL. can any body throw me in tight direction? I was trying to do something like: http://snippets.aktagon.com/snippets/358-How-to-make-a-clickable-link-inside-a-NSTextF...

Delete All Rows in a Table View with Objective-C

Hi everyone! I'm looking for a way to delete all rows of an NSTableView. The table view has a data source but it isn't set as a variable so if I need a data source, I have to have something like "data source of tableView" to access it. Thanks in advance. ...

Making a table's display dependent on the selection in another table in Interface Builder

I've got a window set up with two NSTableViews. In Core Data I have two entities set up, one of them containing members of the other, larger grouping (e.g. cars and manufacturers). I've got entry pages set up for each entity and they play nicely there (no faulting when trying to select from a many-to-one in a drop menu). What I'm tryi...

Selecting A Row In An NSTableView Programatically.

I want to Select A Row in my table view programatically, I believe I would use selectRowIndexes:byExtendingSelection: (is this a delegate method?). The other thing is how would I use that method to select the second row (in programming terms row 1)? ...

Table view not updating according to bindings - Part Deux

Title borrowed from this question, of which this one is not a duplicate. See my answer there for what was wrong for that questioner; I'm the author of that answer, and my problem is not that one. I have a table view with three columns, whose Value bindings are bound to three properties of the arrangedObjects of an array controller. The ...

Deleting a selected NSTableView row from Core Data?

How would I delete selected NSTableView row and it's corresponding Core Data entry? ...