nstableviewcell

Cocoa: Core Data + NSTableView

I have a core data app set up, and everything is working pretty well. But there is one little problem. When I insert a new object into my entity I have it go to my NSTableViewCell, where I can edit it to the text I want, but there's one little issue, I can edit the cell, but I can't deselect it to save it to core data, it's stuck in ed...

vertically aligning text in NSTableView row

Hi all, I have a small problem with NSTableView. When I am increasing height of a row in table, the text in it is aligned at top of row but I want to align it vertically centered! Can anyone suggest me any way to do it ?? Thanks, Miraaj ...

How to programmatically retrieve table selection and table row for Core Data app?

I'm trying to make a Core Data app in which when you select one "Player" in a TableView, and a list of all teammates appears in a second tableView, with a column for how many times those two players have played on the same "Team" (another entity). This has got me completely stuck, because while I know how to fill up a table from a norma...

Problems with NSButtonCell action

For some reason the NSButtonCell for my table view is passing the wrong object as a parameter. I am trying to read the tag of the NSButtonCell after it is clicked. Here is a simplified version of my code: - (int)numberOfRowsInTableView:(NSTableView *)aTableView { return 3; } - (void)tableView:(NSTableView *)aTableView willDisplayC...

Binding to NSTextField Cell not working, edited value resets to default

I'm working on a Core Data document application that dynamically creates NSTableColumns. The data cell type may be a checkbox, slider, etc. Programmatically binding to all cell types works, except for NSTextFieldCell. All NSTextFieldCells fail to bind, and after editing they return to their default value. This happens no matter if they'...

How to select one NSCell in an NSTableView?

I have a small NSTableView with a checkbox. Whenever the checkbox is not checked, I want one of the adjacent NSCells to be grayed out and inaccessible. However, I can't figure out how to address only one specific cell. -dataCellForRow of NSTableColumn always changes the template cell for the whole table column. How can I access one sin...

jerky scrolling in NSTableView

Hello All, I have a NSTableView with around 70 - 80 rows, each row contain a checkbox, title text and a drop down menu to select data. The problem i am facing is that when i scroll the table it does not scroll smooth. When i remove the NSComboBoxCell it works ok. Here is the code i used to add NSComboBoxCell - NSTableColumn* ...

Change color of NSTableViewCell

How can I change the color of a cell in my NSTableView? ...

Multiple Lines in NSTextFieldCell

How can I have multiple lines in my NSTextFieldCell in my NSTableView? By this I mean have multiple lines of data: Ex Stack Overflow www.stackoverflow.com turns into this: Stack Overflow www.stackoverflow.com ...

Table view cell, custom editor and editing frame

Hi! I am using a custom editor when editing the contents of a cell inside a Table view. From the docs I see that the custom editor has to be an NSTextView. So I put the text view in the document view, then I referenced it from the cell subclass through an IBOutlet in order to assign it as custom editor. When doing all this, I can set t...

Is it possible to design NSTableView cells using Interface Builder? (not for iOS apps)

Is it possible to design NSTableView cells using Interface Builder? I know this is actually possible if your project is for iOS but somehow IB does not render the cell container if its for Mac OS X. ...