nstableview Questions

4

Solved

I'm searching for an elegant way to detect a right-click/ctrl-click on the header of an NSTableView. When the right click occurs, I want to display an contextual menu. - (NSMenu *)menuForEvent:(N...
Stempson asked 3/10, 2010 at 12:34

2

Say I have a bunch of Article objects stored within the core data model. Each article maintains, a reading progress attribute which denotes how much of the article has been read by the user. Once t...
Nostril asked 8/6, 2013 at 14:57

3

Solved

I'm trying to create a sectioned NSTableView using NSArrayController and cocoa bindings. I'm searching for a similar approach like with NSFetchedResultsController in iOS, where you can set a sectio...

4

Solved

In my application I have a view based NSTableView with one column. The highlight color of the rows is set to regular (blue). I need to change that color to my custom color. In the interface builder...
Williford asked 11/2, 2015 at 18:10

2

Solved

I have made the following example app to illustrate my question. The left view is a place holder view (added in Interface Builder). When the App loads I add a subview managed by a NSViewControlle...
Notecase asked 13/1, 2013 at 5:17

3

Solved

I'm making an Cocoa app for Yosemite. I added a view based NSTableView in Interface builder, but the border 2 pixel width and thicker than Yosemite's Finder's. And the cell selection color is blu...
Wide asked 7/4, 2015 at 9:0

3

I am using core data, with an up-to-date XCode. I have a table, view-based, with NSPopupButtons in one of the columns. The table has an array controller that gets its data from entity A. There is a...
Charactery asked 22/12, 2012 at 13:58

5

Solved

When I select a row from NSTableView, it is not running the code from tableViewSelectionDidChange method. I had put break points in this method and it is not even going into the method. Any ideas?...
City asked 4/2, 2012 at 8:19

4

Solved

Is it possible to make my NSTableView accept a deleteevnt (backspace og even cmd+backspace) ? I have an NSMenu where i have my delete-menu-item connected to my first responder object in the nib. A...
Biome asked 9/2, 2011 at 14:35

4

Solved

I'm looking for an easy solution to delete NSTableView rows by pushing the delete key. All I have seen when searching in Google were answers like this: http://likethought.com/lockfocus/2008/04/a-...
Dickman asked 12/1, 2011 at 12:35

2

My OS X app has a NSTableView with larger row height: myTableView.rowSizeStyle = .large I try to put some text in it but I found that the text I put in cannot be vertically centered. Please se...
Geriatric asked 22/6, 2017 at 11:55

5

I have asked this question once before, but I'm just not very satisfied with the solution. Automatically adjust size of NSTableView I want to display a NSTableView in a NSPopover, or in a NSWindo...
Fimbria asked 8/1, 2013 at 17:43

3

Solved

I am aware that there are other questions on SO about changing alternating row colors. That's easy and it's not what I want to do. I want to draw custom alternating-colored rows in a view-based NST...
Kashmiri asked 6/1, 2013 at 1:29

4

I have a view based nstableview. I want to color entire row based on some condtion for which I have used code below - (NSTableRowView *)tableView:(NSTableView *)tableView rowViewForRow:(NSInteger)...
Reverent asked 6/6, 2012 at 8:34

2

Solved

Ive developed for iOS in the past and recently moved over to mac development. I began a project to "get the feel" of things, and ran into an issue. Im trying to create a NSTableView to display mult...
Tenstrike asked 4/6, 2013 at 0:21

4

Solved

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 ...
Warder asked 25/11, 2009 at 20:27

6

Solved

I'm trying to detect when a mouse click occurs in an NSTableView, and when it does, to determine the row and column of the cell that was clicked. So far I've tried to use NSTableViewSelectionDidCh...
Haplography asked 1/9, 2013 at 16:35

0

I have a view-based NSTableView and NSTableCellView subclass which having multiline NSTextField with word-wrap enabled. Now I want my table to have dynamic row height according to textfield content...
Hillside asked 8/2, 2017 at 5:46

4

El Capitan introduced San Francisco system font, which has proportional digits by default. This makes numbers in table columns look jagged and hard to compare: I'd like to enable fixed-width n...
Ingvar asked 27/11, 2015 at 9:46

1

I want to popup a NSMenu when the user right-clicks on a NSTableCellView within a NSTableView. let cell = myTableView.make(withIdentifier: "myCustomTableCellView", owner: self) as! MyTableCellView...
Silvasilvain asked 27/1, 2017 at 22:10

3

Solved

I'm new to cocoa and I'm getting frustrated, I've spent almost half the day trying to find out how to add an NSView to a NSTableView cell, but I haven't found a nice guide that can help me do what ...
Mamie asked 11/11, 2012 at 18:33

2

Solved

For my first Mac app, I'm trying to make a simple window with just a table view. I enabled Headers but it adds an annoying line on top of my NSTableHeaderView: I can't seem to find a property to...
Whomsoever asked 25/11, 2011 at 1:15

3

Solved

I want to make my tableView act like this: When the mouse swipe over a certain row, the row will be highlighted, just like the mouseOver event of a button
Krona asked 28/4, 2014 at 3:45

5

Solved

I have anNSTableView showing the contents of a directory. I watch for FSEvents, and each time I get an event I reload my table view. Unfortunately, the current selection then disappears. Is there a...
Legpull asked 6/6, 2011 at 5:55

4

I'm trying to release some strain on a view-based NSOutlineView for which I changed a single item property and which I initially reloaded just fine using [myOutlineView reloadData]. I tried [myOutl...
Tallu asked 13/11, 2013 at 19:51

© 2022 - 2024 — McMap. All rights reserved.