Questions tagged [nstableviewcell]

120 questions
1
vote
2 answers

Attending to each row of NSTableview to change image on Click-

I'm trying to add this example's ImageAndTextCell.h class to my project. I have added it successfully. It looks something like below On row click i get the selected index and on IBAction I need to change it to green color. Which works fine too. But…
DesperateLearner
  • 1,115
  • 3
  • 19
  • 45
1
vote
0 answers

Uneven NSTableCellView Focus Ring

I'm working on a small app that uses a view-based NSTableView to display contents. I'm using an NSTableCellView subclass as the contents for each cell, and I'm having a problem where the NSTableCellView looks terrible when selected. First, the left,…
Kris H.
  • 97
  • 1
  • 6
1
vote
1 answer

How to create iOs like looking NSTableView?

I want to create a good looking NSTableView with an iOs "feel" to it. Every NSTableView I create looks like it's from the late-90s and feels horrible in my opinion. I know that there are some iOs behaviors which are probably not wanted on a Mac but…
Git.Coach
  • 3,032
  • 2
  • 37
  • 54
1
vote
2 answers

Adding NSTableView to NSView Programmatically

I am having a bit of trouble adding a NSTableView to an NSView programatically. The view is the first view of an NSSplitView. My Pointers are set up right i am sure of it because I can add a NSButton to the view no problem. Also my tableview's…
xMythicx
  • 827
  • 1
  • 11
  • 27
1
vote
2 answers

custom NSTableViewCell

I custom NSTableView just like what I do in UITableView. I implement the datasource and delegate. In the code, I do like this: - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { …
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
1
vote
2 answers

Set NSTableViewCell edit

NSTableViewCell contents one NSImageCell and one NSTextFieldCell, When add a new cell to NSTableView, method [tableView editColumn:0 row:100 withEvent:nil select:YES]; make NSImageCell as editing. I want it focus on NSTextFieldCell, how to do it?
Mil0R3
  • 3,876
  • 4
  • 33
  • 61
1
vote
1 answer

How to show more detail when TableView Cell is clicked?

I have a TextView and any text entered into the TextView can be saved to a TableView (or should I say NSMutableArray!). I have this working without issues. The problem I am now having is because a lot of text could be typed into the TextView, not…
Chris
  • 13
  • 4
1
vote
1 answer

Editing the row for duplicates using NSAlerts in NSTableView

I have a NSMutableArray which contains NSMutableDictionaries.I would like to display one string from this dictionary in a NSTableView.This string is unique among the objects.By default this has some known value.When an object is inserted and if…
Ram
  • 1,872
  • 5
  • 31
  • 54
0
votes
1 answer

How to retain the field Editor after editing the cell in a NSTableView?

Added detailed info I have two Windows.(mainWindow and childWindow.) On the top of the mainWindow I added childwindow using WindowController using the following Code, so that the childwindow is always on the top of…
Ram
  • 1,872
  • 5
  • 31
  • 54
0
votes
2 answers

How to programmatically initiate NSTextFieldCell editing (make it firstResponder)

I have two NSTableViews. On double clicking on the tableview1 the contents of the tableview1 will be placed in tableview2. I would like to edit the new cell in the tableview2. Tried the following method. - (void)editColumn:(NSInteger)columnIndex…
Ram
  • 1,872
  • 5
  • 31
  • 54
0
votes
2 answers

How can I create itunes/finder/mail style table view

I'd like to create the content lists in the style of the Finder window's left pane (similarly in the style Mail/iTunes/etc). Currently my NSTableView/NSOutlineView implementation looks a little basic. Is there any tutorial that can help me mimic the…
jkcl
  • 2,141
  • 3
  • 16
  • 19
0
votes
1 answer

Does iOS support view-based Table Views?

Does iOS support view-based tables, in addition to the classic cell-based tables? It appears this new capability is only on the Mac (OS X v 10.7). Thanks!
carrie
  • 3
  • 1
0
votes
0 answers

Rest of custom table view cell not showing up in table view Swift

The rest of a custom table view cell is not showing up for me in a table view. Only the very top part of the custom table view cell is showing. The custom table view cell that this is occurring for is for showing the open business hours of a …
cg1000
  • 7
  • 4
0
votes
1 answer

How to go about changing the assignment of a custom cell variable based on if and else-if statements after the variable is declared? Swift

I’m trying to have a custom cell whom’s variable assignment changes based on if and else-if statements after the variable is declared. This is to have the custom cell, which shows business hours of a selected business, be able to pick the custom…
cg1000
  • 7
  • 4
0
votes
0 answers

How to enable copy paste in my NStableviewcell in my cocoa application programatically

Below is my code for my NSTableview cell class MyTableCellView: NSTableCellView { var aTextField: NSTextField? override init(frame frameRect: NSRect) { super.init(frame: frameRect) aTextField = NSTextField(frame:…
MacDeveloper
  • 1,334
  • 3
  • 16
  • 49