NSMatrix is a class used for creating groups of NSCell objects that work together in various ways.
Questions tagged [nsmatrix]
50 questions
0
votes
0 answers
How can I create and display an NSMatrix using MacRuby?
From a new Xcode project, using MacRuby, what code needs to be added to applicationDidFinishLaunching to draw an NSMatrix in the main window?
I've been trying to do this using various methods (Creating the NSMatrix manually, not using Interface…

Tronathan
- 6,473
- 5
- 22
- 24
0
votes
2 answers
Getting the column and row of an NSCell in an NSMatrix in Cocoa
Given an NSMatrix and an NSCell is there a quick way to query the matrix to know at which row and column in the matrix the cell is placed. I would like to know this upon receiving action messages from NSActionCells.
The only way I can see of doing…

jbat100
- 16,757
- 4
- 45
- 70
0
votes
1 answer
Which control can be used in order to display a dynamic form (with various types of data)?
I'm facing the following problems:
We have meta data for items, each item can be a different type of NSControl, currently NSTokenField and NSTextField, but we might need NSCombo or other types.
I need to build a form in which each entry will have a…

Liss
- 13
- 3
0
votes
1 answer
NSMatrix on NSTableColumn
Is it possible to set an NSMatrix as the cell of a NSTableColumn?. If possible, how should I do it?
Thanks in advance.

mikywan
- 1,495
- 1
- 19
- 38
0
votes
1 answer
NSMatrix simple binding question
I am trying a sample application in which I have taken following controls:
i. NSMatrix (with 2 elements, serving as radio button)
ii. Button (which when clicked generates action based on radio button selected)
My questions are-
In IB, can we bind…

Devarshi
- 16,440
- 13
- 72
- 125
0
votes
1 answer
Programmatically select a cell in NSMatrix automatically makes the cell visible
I've been working with some legacy codes, and the current situation is I have a NSMatrix as a group of radio buttons inside a NSScrollView. The NSMatrix is at the top of the NSScrollView, and the NSScrollView can contain up to hundreds of other…

Marsupito
- 59
- 1
- 9
0
votes
1 answer
NSMatrix has too many buttons?
I'm trying to make a radio button set with two options, "Single" and "Sweep". I dragged a radio button into my storyboard and then added it to a matrix using Editor->Embed in. I then changed the number of rows to two.
I see two radio buttons in the…

Maury Markowitz
- 9,082
- 11
- 46
- 98
0
votes
1 answer
Showing image before text in NSButtonCell in NSMatrix
I am displaying buttons in NSMatrix.
My requirement is:
to change color of button title and
place an image at beginning of title, when certain condition is satisfied.
To do so, I used following code:
// setting attributed text
…

Devarshi
- 16,440
- 13
- 72
- 125
0
votes
1 answer
Hillegass: Cocoa Prog 3rd Ed: Ch. 33 on OpenGL: Where's the Matrix?
I'm using XCode 3.1.4, on OSX 10.5, targeting same. In Ch. 33 we're asked to drag an NSOpenGLView and an NSSlider onto the IB library, and then do Layout -> Embed Objects in ->
Matrix. Except the Matrix option is always disabled.
What do I have to…

Eric
- 2,115
- 2
- 20
- 29
0
votes
1 answer
Interface Builder Bug?
I have a cocoa program that I have I am writing on a 10.6 system, but targeting to 10.5.
On the 10.6 system, it works fine. However, when I run it on the 10.5 machine, I get:
The sender of menu item actions is
now the NSMenuItem, not an NSMatrix.…

Brian Postow
- 11,709
- 17
- 81
- 125
0
votes
1 answer
Dynamically adding cells to a NSMatrix laid out with Auto Layout has weird effects; why?
I want to create a group of radio buttons using the NSMatrix method that Interface Builder uses, but in code. The matrix is laid out using Auto Layout. I have it mostly working, except for when I add new options at runtime.
In the following example,…

andlabs
- 11,290
- 1
- 31
- 52
0
votes
1 answer
NSMatrix bindings mayhem
I want to use NSMatrix to represent a scheduling matrix for employees (columns) across a 6-day work week (6 rows). FYI, since NSTableView doesn't support cell-by-cell drag-and-drop, I'm having to resort to using NSMatrix instead. Bummer.
Anyways,…

zzyzy
- 973
- 6
- 21
0
votes
1 answer
how to select programmatically NSMatrix radio by tag in XCode5 (cocoa)
I'm developing an app for MacOSX and I'm creating a NSMatrix (Radio Buttons) like this:
arrayClasifCuentas = [[NSMutableArray alloc]init];
[arrayClasifCuentas addObject:@{@"tag": @"7",@"value": @"Seven"}];
[arrayClasifCuentas addObject:@{@"tag":…

Jesus
- 8,456
- 4
- 28
- 40
0
votes
3 answers
Getting the current state of NSButtonCell in an NSMatrix
I'm using an NSMatrix as a keypad and calling:
[selectedCell setEnabled:NO];
[selectedCell setTransparent:YES];
when a key is selected (to prevent the same operation being performed again). However, I'd also like the option of 'flipping' the entire…

Bender
- 357
- 5
- 15
0
votes
2 answers
Get selected cell in NSRadioButton in Object C
I create radiobutton has 2 row and 1 column and set action for it but it work not correct, it always seleced cell tag =0. This is my codes:
NSButtonCell *prototype= [[NSButtonCell alloc] init];
[prototype setTitle:@"Normal"];
…

HTKT611
- 161
- 1
- 1
- 11