NSMatrix is a class used for creating groups of NSCell objects that work together in various ways.
Questions tagged [nsmatrix]
50 questions
5
votes
1 answer
Radio buttons without using NSMatrix
In the AppKit release notes for OS X 10.10, Apple wrote:
Use of NSMatrix is informally deprecated. We expect to add the formal deprecation macros in a subsequent release, but its use is discouraged in the mean time. The primary use of NSMatrix is…

Dejal
- 813
- 6
- 18
4
votes
2 answers
Binding to NSMatrix for BOOL attributes
I have a simple core-data entity that has a Boolean attribute called subscribedToNewsletter. I have designed my UI to represent this field as a radio button group with Yes/No as the text values (and obviously YES/NO as the backing BOOL values).
I…

Craig Edwards
- 2,118
- 1
- 18
- 23
4
votes
1 answer
Can Cocoa radio buttons that do not use NSMatrix have bindings?
On a previous project I used an NSMatrix object to implement three radio buttons. I did not have an action tied to these buttons, they were bound to an @property so that when a different radio button was chosen, the property's value changed.
Now I…

ObjCLearner
- 71
- 6
4
votes
0 answers
NSMatrix deprecated + radioMode .. Alternative
As it appears that NSMatrix is being deprecated soon, I was wondering what a better alternative would be for a column of "NSActionCells" or "NSButtonCells".
NSCollectionView, seems to be one example, but I'm not completely convinced that this is the…

Adrian Sluyters
- 2,186
- 1
- 16
- 21
3
votes
0 answers
Issues coupling NSDraggingSource w/NSMatrix
Picture this sparsely populated NSMatrix, five coloured columns (0-4), with the most recently added column in orange. These are populated with stand-in objects (random numbers) with the (x,y) coordinates noted. "Blank" cells have stand-in NULL…

zzyzy
- 973
- 6
- 21
3
votes
2 answers
NSMatrix hidden on 10.7 Lion
I have two NSMatrix radio controls in different places in my app. I am developing on 10.8, using the 10.8 SDK and targeting 10.7. The matrixes work perfectly on my development computer, but when I test on a Mac running 10.7, neither matrix appears.…

colincameron
- 2,696
- 4
- 23
- 46
3
votes
0 answers
Deselecting cells programmatically in NSMatrix does not work
I want to be able to deselect all the cells in an NSMatrix from my program.
I am using deSelectAllCells but it does not work correctly.
It always leaves at least one cell selected.
More specifically I have tried all possible settings of mode which…

Edmund
- 31
- 2
2
votes
1 answer
Assigning a delegate programmatically
I am attempting to assign my view controller as the delegate to a NSTextField I created from within the application:
replaceCell = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 60, 60)];
[replaceCell setDelegate:(id)myViewController];
I have…

Scott Henderson
- 101
- 11
2
votes
1 answer
disabling radiobutton in Cocoa
I have 2 radio buttons ( NSMatrix with 2 rows and 1 column) and have defined them in the header file as
IBOutlet NSMatrix *temp;
Now when I pick a certain option, I want to disable both these radio button's or at times I want to disable the…

ZionKing
- 326
- 1
- 4
- 16
2
votes
2 answers
How to add tooltips to NSButtonCell that is within a NSMatrix
I am currently instantiating an NSMatrix w/ NSButtonCell subclasses through IB
I use the identity inspector to change the Tool Tip property
But the tooltip doesn't show on the button cell.
If I set a tooltip on the NSMatrix object, a tooltip still…

A O
- 5,516
- 3
- 33
- 68
2
votes
2 answers
How can I convert this C Calendaer Code into a Objective-C syntax and have it work with matrixes
#define TRUE 1
#define FALSE 0
int days_in_month[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
char *months[]=
{
" ",
"\n\n\nJanuary",
"\n\n\nFebruary",
"\n\n\nMarch",
"\n\n\nApril",
"\n\n\nMay",
"\n\n\nJune",
…

Alec Niemy
- 29
- 1
2
votes
1 answer
Creating an NSMatrix programmatically, Snow Leopard
I'm trying to create an NSMatrix of an NSImageCell prototype programmatically (if you can help me doing it via Interface Builder, be my guest at answering me here)
I created a new, empty project. In it, a normal object (subclassing NSObject) has…

Aviad Ben Dov
- 6,351
- 2
- 34
- 45
2
votes
0 answers
Setting NSMatrix selection programmatically causing mutex lock when trying to later get selected cell
Overview
I'm seeing a strange issue in a Mac OS X Cocoa app I'm developing w/Xcode 4.3.2 and testing on Mac OS X 10.7.5 (targeting Mac OS X 10.6): I have a basic NSMatrix radio group in my main NIB that has one outlet and one action in my main…

morgant
- 2,135
- 2
- 19
- 28
1
vote
1 answer
Using "Tab" key to move from NSTextField to NSMatrix
I have a Cocoa Form (xib) which contains some NSTextFields and an NSMatrix of NSButtonCells. I can use the "Tab" key to tab though the NSTextFields, but the NSMatrix gets skipped over.
I want to be able to tab into the NSMatrix, and tab from one…

arossco
- 77
- 1
- 7
1
vote
1 answer
How can I change individual cell background colors in an NSForm?
I would like to individually set cell background colors in an NSForm. I thought it would be a matter of subclassing NSForm and overriding -drawCellAtRow:column:. But -drawCellAtRow:column: only gets called when the cell receives focus.
I've…

SSteve
- 10,550
- 5
- 46
- 72