Questions tagged [nstableviewcell]

120 questions
2
votes
0 answers

InterfaceBuilder NSButton connect to NSViewController Cause "Could not connect action, target class NSObject does not respond to"

I have a view-based NSTableView whose "file's owner" is the ViewController. I dragged a button(for deletion) on the custom NSTableCellView, so I want to click the button and delete the current row from tableView, but when add a row the debug console…
Meonardo
  • 182
  • 13
2
votes
1 answer

What's the NSView version of NSCell's highlighted property?

I'm migrating a cell-based NSTableView to be view-based. With NSCell, to determine if a cell was highlighted (e.g., to draw the text in white instead of black), I looked at the NSCell highlighted property. What's the NSView version of this? I…
J. Cocoe
  • 881
  • 1
  • 10
  • 22
2
votes
2 answers

How to get NSTableView to use a custom cell view mixed with preset cell views?

I have a NSTableView configured in Interface Builder which uses several default cell views. However the first column's cell view needs to be created from a custom class. How do I implement NSTableViewDataSource method tableView.viewForTableColumn()…
BadmintonCat
  • 9,416
  • 14
  • 78
  • 129
2
votes
3 answers

Change NSTableView cell value While Editing

I want to change the value being displayed in a NSTableView Cell while editing it. My requirement is the following: Initially I entered a cell value of 234.5678978 and after editing the value is being rounded up to 0 decimal precision(that means…
triandicAnt
  • 1,328
  • 2
  • 15
  • 40
2
votes
1 answer

Custom background colors for NSTableCellView

I am trying to create a custom NSTableCellView. I subclassed NSTableCellView and I need to have a custom background color and highlight/selection color. Is there a way to do this?
Vibhor Goyal
  • 2,405
  • 2
  • 22
  • 35
2
votes
1 answer

Cocoa: custom NSCell not respond double click action

I focus on a cocoa app supported on 10.6, and I use cell-based NSTableView. I custom the NSCell so that it can display image and text. The Problem here is : when I set the doubleClickAction to the tableview, it did not respond. I have already found…
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
2
votes
2 answers

NSCell redrawing issues

I'm creating a NSCell subclass that draws some objects directly onto the view (using drawInRect:fromRect:operation:fraction:respectFlipped:hints:) and also draws an NSButton instance simply using NSView's addSubview: selector. While objects drawn…
Pripyat
  • 2,937
  • 2
  • 35
  • 69
2
votes
2 answers

Using a round rect button as a badge with a counter

I'm using a view based NSOutlineView with two different views (both views are custom subclasses of NSTableCellView). In the top level view I display a badge with a counter. The counter indicates the number of entries on the lower level. The counter…
Roger
  • 4,737
  • 4
  • 43
  • 68
1
vote
3 answers

textShouldEndEditing does not get called in NSTableView

When a user adds a new managed object, it shows up in a table, which scrolls down to the new entry, and the name of the new object (a default value) goes into editing mode. I need to check if the name of the new object is unique in the datastore, so…
Fnord23
  • 325
  • 2
  • 18
1
vote
1 answer

Hyperlinks in an view-based TableView (NSTableCellView)

I have an view-based TableView with an image and a NSTextField. I've got some links inside my NSTextField and I have tried many options (http://developer.apple.com/library/mac/#qa/qa2006/qa1487.html, dsclickableurltextfield) but nothing works out,…
1
vote
1 answer

NSTableView Delegate Called But Data not showing

i have a very strange problem with NSTableView in XCode 4.2. I've set the datasource an delegate for the table. My table has 3 columns where each of the column has an identifier ("name","mugshot","lastSeen"). My delegate -(id)tableView:(NSTableView…
Martin
  • 790
  • 2
  • 9
  • 24
1
vote
1 answer

NSTableRowView not responding to setNeedsDisplay when selected state is toggled off

I've seen at least one StackOverflow answer suggesting that I need to use a NSTableRowView if I want a custom color for my NSTableView's selected cell state. So I created a custom subclass and added some NSTableViewDelegate calls to use the…
Cosmo
  • 171
  • 1
  • 8
1
vote
2 answers

Draw Lines Diagonally in a particular NSTableview cell

Is there a way to draw lines diagonally in NSTableview cell.Can u please post sample to do this.I am new to the Mac development.Please help me in this issue. Thanks in advance.......
Sonu
  • 105
  • 7
1
vote
1 answer

NSTableView transparent TableView

UI Requirement is, 1 -- Need to show a two column table, first col should display an image and 2nd col will have some text with it, 2 -- It should be transparent so it should display the NSView background, My code is written as below, I subclass…
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
1
vote
1 answer

should i used view-based cell or bindings to populate tableview

I am new in Mac Development. I am bit confused that either I should use View-based cells and implement the tableview delegates to populate or I should use bindings. My other question is that would i use the buttons and check-boxes in tableview cell…