Questions tagged [nstableheaderview]

42 questions
6
votes
2 answers

NSTableHeaderView adds a line?

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 remove it. I know it can be removed, because the…
Rits
  • 5,105
  • 4
  • 42
  • 53
6
votes
5 answers

How to set clear background for UITableView Header with opaque body

How do I make the background for a tableHeaderView clear, but keep the rest of the UITableView background opaque? I'm using a transparent tableHeaderView for a paralax effect. The object behind the tableView is a longer than the clear…
Andrew Cross
  • 1,921
  • 2
  • 19
  • 32
5
votes
0 answers

Span NSTableVIew Header for multiple columns

How can I span a header of NSTableView for more than one columns, i.e. I want two/three columns under one header. Like shown in figure: |.....Header......| |..Col1..|..Col2..| I tried using two synchronous scroll view one on the top of another. The…
triandicAnt
  • 1,328
  • 2
  • 15
  • 40
4
votes
5 answers

How do I override layout of NSTableHeaderView?

I am trying to produce a custom header for my NSTableView. I would like to change the font of the header text and remove the borders and vertical separators. My current top and bottom header is shown below: Does anyone know how do I do this…
iphaaw
  • 6,764
  • 11
  • 58
  • 83
4
votes
2 answers

Which Column Was Right Clicked In NSTableHeaderView

When I right click my table view header (NSTableHeaderView) I'm popping up a menu to allow the user to change the column color. The problem is that I don't know what column they just "right clicked" on. Any ideas on how to do this? Thank you.
3
votes
3 answers

How to increase the height of NSTableHeaderView?

I need to implement a headerview with specific size and gradient. I have to insert images in certain cells of the headerview.Tried to create the cells for the headerview using the following code,but i was not able to customize the…
Ram
  • 1,872
  • 5
  • 31
  • 54
3
votes
2 answers

Subclassing NSTableHeaderCell / NSTableHeaderView to make transparent header

for give me if this has been asked before, but I can't seem to find any question answer that would give me the desired behaviour that I am looking to achieve. I have mostly the behaviour that I am looking to achieve, font style and colour, header…
3
votes
3 answers

How to prevent scroll the tableHeaderView of UItable view, To stick at the top

In my split view application it is not possible to add search bar to the rootView of the split view So i added search bar dynamically at the tableHeaderView of the ui table view as folows searchBar = [[UISearchBar alloc] init]; …
3
votes
2 answers

Need to add multiple UI elements to tableheaderview of UITable in iOS

I have a UITableViewController that has a tableView. To this tableView, I would like to add both a label as well as a button but unfortunately, I am only able to add one or the other. Here is my code that I am working with: - (void) viewDidLoad…
syedfa
  • 2,801
  • 1
  • 41
  • 74
2
votes
1 answer

Access each header and controls in the tableview in swift

I have a UITableView with customized header. In that header I have a button with image. func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { let cView = UIView(frame: CGRectMake(0, 0,…
Lydia
  • 2,017
  • 2
  • 18
  • 34
2
votes
1 answer

How to set the column name of an NSTableColumn in a view-based NSTableView?

I've created an NSTableView programmatically and added a single column (an instance of NSTableColumn). How can I set the name of this column (by default it's named "Field")? In NSTableColumn there's a method with signature -…
2
votes
0 answers

Set custom HeaderView for each Column in NSTableView

Is it possible to set a custom header view for each Column in NSTable ? When I drag drop a table to a view, I can see that there is only 1 header view for both the columns. I referred this answer and implemented same in my table class. -…
user88975
  • 1,618
  • 3
  • 19
  • 29
2
votes
2 answers

NSTableViewHeaderView not drawing over NSScroller

I've got a custom NSTableHeaderView of custom NSTableHeaderCell objects that draw a custom header. The problem I'm having is that when the NSScroller bars show up, the header drawn above the scroller is the default, not my custom drawing.
fattjake
  • 116
  • 1
  • 4
2
votes
0 answers

How to create a header view for NSCollectionView

I need to set a header view for my NSCollection view. When I researched I found that NSCollection view don't support a default header view like NSTableView. I need a header almost like the one used in skype. ie. apart from displaying just a title, I…
Advaith
  • 1,087
  • 3
  • 12
  • 31
1
vote
1 answer

UITableView make the headerView not scrollable

How to make the tableView "headerView" not scrollable.
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
1
2 3