nstableview Questions

8

Solved

I need my application to open a window when a user double clicks on a row in an NSTableView. I'm having a bit of a difficult time finding information or examples on how to accomplish this. Can anyb...
Maag asked 6/3, 2009 at 22:5

5

Solved

How do you get the row for a button in a view based table when you click the button? The row is not selected when the button is clicked, but I found that if you log sender.superview.superview in th...
Yseulte asked 18/4, 2012 at 4:33

4

Solved

I am trying to implement a method to clear the NSTableView of all items AND columns. But I get a crash when I try to implement the following: - (void)clearResultData { [resultArray removeAllObjec...
Erse asked 22/12, 2011 at 18:54

2

Solved

I am using a fairly standard setup of NSTableView + CoreData + NSFetchedResultsController, with the relevant view controller being NSFetchedResultsControllerDelegate to receive the changes. Here ar...

2

Solved

I have a TableView with custom cells. I want a contextual menu to appear when the user right clicks (or any other Apple variants of right-click) on one of the cells (and know which cell they clicke...
Sustenance asked 31/5, 2011 at 11:36

4

Solved

I'm facing a problem with a view-based NSTableView running on 10.8 (target is 10.7, but I think this is not relevant). I'm using an NSTableView, and I get content values for my custom NSTableCellV...
Whinny asked 4/9, 2012 at 15:27

7

Solved

I would like to place a context menu onto a NSTableView. this part is done. What I would like to do is to show different menu entries based on the content of the right clicked cell, and NOT show th...
Hackbut asked 3/3, 2013 at 12:28

4

Solved

I have a view based NSTableView with a custom NSTableCellView. This custom NSTableCellView has several labels (NSTextField). The whole UI of the NSTableCellView is built in IB. The NSTableCellView...
Melvinmelvina asked 5/2, 2012 at 12:13

3

Solved

I am writing an application using Core Data to control a few NSTableViews. I have an add button that makes a new a record in the NSTableView. How do I make the focus move to the new record when thi...
Turner asked 10/5, 2009 at 8:27

5

Solved

My app has an NSOutlineView and an NSTableView, and I'm having the same problem with both. With a row in either selected, pressing the tab key puts the first column into edit mode instead of making...
Deguzman asked 8/4, 2011 at 21:8

5

I am new to the Mac. I am trying to update a particular cell in NSTableView without using -reloadData, as -reloadData updates the whole table. I have tried everything but all was in vain. I am tryi...
Illgotten asked 20/10, 2010 at 11:52

2

The NSTableView -noteNumberOfRowsChanged documentation says: Note: When using NSView-based table views this method should be avoided. The table will query the data source for the new number of r...
Strahan asked 2/4, 2014 at 16:48

2

Solved

I have set the intercell spacing in my NSTableView to 0 by sending: [self.tableView setIntercellSpacing:NSMakeSize(0, 0)]; in the window controller's awakeFromNib but there is still an (possibly...
Francklyn asked 7/12, 2012 at 5:29

2

I am working on building MacOS app. I am trying to make table view that updates the cell when I press add button. Following is my code: func tableView(_ tableView: NSTableView, viewFor tableC...
Uplift asked 12/6, 2017 at 9:55

3

Solved

NSOutlineView is a subclass of NSTableView. And currently, NSTableView supports two implementations. Cell-based. View-based. To make OSX 10.8 Finder style side bar (with automatic gray Icon sty...
Falconer asked 19/10, 2013 at 8:37

2

Solved

Is there a way to get the height of the content in an NSTableView. In iOS, you can use the -contentSize method of UIScrollView. However, the -contentSize method of NSScrollView seems to just return...
Oblong asked 4/7, 2012 at 3:41

3

Solved

I have an NSTableView (view Based) who show info's from an NSarrayController. All connections are made from IB. Everything works fine, but blue selection color doesn't look ok with my design idea,...
Kwiatkowski asked 6/4, 2015 at 15:16

2

Solved

Since macOS 10.13 we can use NSTableView with automatic row heights, thanks to the new property usesAutomaticRowHeights and of course auto layout. This works quite nicely. But when the user resize...
Theodolite asked 23/10, 2017 at 13:7

4

Solved

I have a custom NSTableCellView with 3 textfields, 1 that came along and 2 others that i created myself. Here's the problem: The textfields' text color stays the same even when i click on the row...
Hellbox asked 20/10, 2012 at 15:2

5

Solved

Is there a simple way to disable scrolling of an NSTableView. It seems there isn't any property on [myTableView enclosingScrollView] or [[myTableView enclosingScrollView] contentView] to disable i...
Banquet asked 27/9, 2012 at 16:48

3

Solved

I'd like to programatically select a row in my NSTableView, with just one column. func selectColumnIndexes(_ indexes: NSIndexSet!, byExtendingSelection extend: Bool) I have been playing around ...
Grandniece asked 12/8, 2014 at 19:35

2

Solved

I have a NSTextView field which filters a NSTable table as user types in the input. I have successfully implemented table filtering. Now, my goal is to auto-select the first result (the first row ...
Mustee asked 27/1, 2018 at 22:0

4

I am looking to remove the separator color in View based NSTableView. It looks like this : For UITableView there is a method setSeparatorColor: but not for NSTableView. Solutions will be highl...
Karinakarine asked 6/5, 2013 at 9:17

3

Solved

I want to make transparent NSTableView. I am using WindowController class here. I was trying this: - (void)windowDidLoad { [super windowDidLoad]; [[self enclosingScrollView] setDrawsBackground: ...
Longs asked 15/9, 2011 at 6:37

0

I been working on a self taught project in Cocoa. Trying to replicate how the media player playlist works(Play,Add and Delete and etc...). So far, I have managed to populate a tableview from the d...
Oakes asked 26/11, 2017 at 10:47

© 2022 - 2024 — McMap. All rights reserved.