The NSButtonCell class is a subclass of NSActionCell used to implement the user interfaces of push buttons, checkboxes (switches), and radio buttons. It can also be used for any other region of a view that’s designed to send a message to a target when clicked. The NSButton subclass of NSControl uses a single NSButtonCell.
Questions tagged [nsbuttoncell]
77 questions
0
votes
1 answer
Applescript Cocoa Application NSButtonCell Not Setting Cell Transparent
I have been playing around in Xcode and currently working with NSMatrix's NSButtonCells but hitting a road block. I want a matrix that only shows 5 Radio Buttons on 2 lines. (Technically a 2 by 3 with one invisible) This is a changing Matrix that…

Tim Joe
- 475
- 8
- 18
0
votes
2 answers
How do I associate a NSTableCellView Checkbox toggle-event with its data source?
Environment: View-based NSTableView WITHOUT Bindings.
Problem: Mapping column's checkbox action to its datasource (i.e., how do I know which row the checkbox event has occurred, in real time?).
Without using IB bindings, how do I associate any…

Frederick C. Lee
- 9,019
- 17
- 64
- 105
0
votes
0 answers
NSButton type not set properly
I am having a mac app.
In which, I am creating a NSButton programmatically.
Here is my code below.
NSButton *myButton = [[NSButton alloc] initWithFrame:NSMakeRect(263, 265, 125, 148)];
[[cleanNow contentView] addSubview: myButton];
…

Manthan
- 3,856
- 1
- 27
- 58
0
votes
1 answer
NSButton(Cell) setFont
It seems that NSButtonCell's setFont method is not available anymore from 10.9.
Is there any way (or category) to (re)implement it?
I don't know why Apple forces it's own styles on buttons.
I am trying for 2 days to style my own custom button (I…

MariusP
- 472
- 4
- 17
0
votes
1 answer
How to make flat NSButton?
How can I make a flat NSButton just like in this picture?
I think this picture from Mac OS X >= 10.9. I have Mac OS X 10.8.5.

abg
- 2,002
- 7
- 39
- 63
0
votes
1 answer
NSButton: setting different focus ring color
I'm trying to set the NSButton focus ring color to white. Currently, when the button has firstResponder, it shows a blue outline.
I am aware that there is the drawFocusRingMaskWithFrame:inView: to help do this, but I'm not sure how to use this to…

Z S
- 7,039
- 12
- 53
- 105
0
votes
0 answers
Checking for Private Class Name Grounds for Rejection from Mac App Store?
I've noticed that the "stock" Aqua radio button and checkbox images are drawn using the normal NSButtonCell method, -drawImage:withFrame:inView:.
When drawing in my NSButtonCell subclass, I'd like to discern between a stock image being passed and an…

Ben Stock
- 1,986
- 1
- 22
- 30
0
votes
1 answer
Problems when deselecting checkboxes inside bound NSTableview's columns
I am using this project, created by aneesh171 that shows the creation of checkboxes inside NSTableView and how to bind them. I am new to OSX development and trying to understand how it works.
The project is basically checkboxes inside a…

Duck
- 34,902
- 47
- 248
- 470
0
votes
1 answer
NSButtonCell checkbox inside NSTableView is always getting NSOffState. Why?
Hi guys I'm new to Cocoa programming and I am getting always NSOffState whether I'm checking or unchecking an NSButtonCell (Check Box Cell in the UI dragged to a cell in an NSTableView).
I have a @property IBOutlet NSButtonCell *mySelection,…

Carlos Maria Caraccia
- 470
- 4
- 22
0
votes
1 answer
In a tableview with a NSButtonCell in a column, who creates NSButtonCell(s)?
A TableView is created in IB, and it is desired that it have only one column with checkboxes. One way to create the checkboxes is to drag an NSButtonCell into the column using IB, and then conforming to the NSTableViewDataSource protocol…

bhartsb
- 1,316
- 14
- 39
0
votes
2 answers
How to have checkboxes and textfields in a single tableview column using NSTableViewDataSource Protocol?
How can one have checkboxes and textfield (for section headings) in a single tableview column using NSTableViewDataSource Protocol?
My requirement is to use a Cell Based TableView.

bhartsb
- 1,316
- 14
- 39
0
votes
1 answer
How to get a custom table cell view with multiple columns and their contents
I am completely a newbie in Mac OSX development. I have a View based NSTableView with 3 columns. Here are the structures of the columns:
TableColumn1->Table Cell View->NSImageView, NSTextField1, NSTextField2
TableColumn2->Table Cell…

Erfan
- 1,284
- 1
- 13
- 21
0
votes
2 answers
How to programmatically allocate a subclass of NSButton with a custom NSButtonCell?
I' m trying to create a subclass of NSButton thats use also a subclass of NSButtonCell but I can' t do that in code!
This is my NSButonCell subclass that's works well if I create the button in IB and set his cell class directly in IB:
#import…

Luca
- 1,704
- 3
- 29
- 42
0
votes
2 answers
Is an created NSButtonCell unique?
So, is the button identifiable?
I need to identify a cell-botton (Button Cell) in aNSTableView in order to detect if it was pressed already. The table can always change by user input. My bright idea is if a created button (button cell) were unique…

JFS
- 2,992
- 3
- 37
- 48
0
votes
1 answer
Programmatically create NSButton and set custom NSButtonCell
Ok, this seems like it should very simple, but I'm coming from iOS and and I must be missing something very obvious. So I have a custom subclass of NSButtonCell. If I create a NSButton in IB and assign the NSButtonCell in IB, it works no…

InfalibleCoinage
- 588
- 13
- 21