Hi,
I've a table view to which I add columns dynamically. It must be done this way because I can't predict how many or which columns I will need.
Some columns are checkboxes but I can't click on them when I run my application. The column and checkbox are set to be editable but if I click on the checkbox the check won't get set. Am I m...
Hello everybody,
in my cocoa application, I need a custom NSCell for an NSTableView. This NSCell subclass contains a custom NSButtonCell for handling a click (and two or three NSTextFieldCells for textual contents). You'll find a simplified example of my code below.
@implementation TheCustomCell
- (void)drawWithFrame:(NSRect)cellFrame ...
Hi,
I'd like to use image templates on some of my buttons to have them behave as follow :
Raised background in "normal" state, so the image appears engraved in the button
When the button is pushed, the image turns to blue until it's released (like a selected toggle button)
I need my button to be without borders
I tried different com...
I currently have an odd case where I need to be able to reorder rows in an NSTableView, but the only column happens to be an NSButtonCell. I'm trying to see how I can override NSButtonCell's mouse tracking in order to get it to behave in a way so that the NSTableView will begin dragging the row, but am not having much luck.
Additional i...
For some reason the NSButtonCell for my table view is passing the wrong object as a parameter. I am trying to read the tag of the NSButtonCell after it is clicked.
Here is a simplified version of my code:
- (int)numberOfRowsInTableView:(NSTableView *)aTableView {
return 3;
}
- (void)tableView:(NSTableView *)aTableView willDisplayC...
I successfully implemented the Merged NSTableView from the article by Dan Wood:
http://www.mactech.com/articles/mactech/Vol.18/18.11/1811TableTechniques/index.html
I am trying to make the cells be NSButtonCells, in general it works well, the only problem is that it only responds to the clicks done in the area of the original column, not...
How do I create a button with an images for normal & highlighted states in interface builder for cocoa application? I need a button like custom button in cocoa-touch and provide a graphics for default and highlighted states. Again, it's for pure mac application not for iPhone.
TIA
...
Hello,
I have an OutlineView with one column of NSButtonCell checkboxes. The content binding of the outline view is to a TreeController. Currently, I can bind the checkbox status to the content of the TreeController by binding the value of the Table Column to TreeController.arrangedObjects.shouldBeCopied. However, I can only seem to bin...
OK I'm really stumped on this one. I want to make a checkbox with a
NSTextFieldCell combined together. It's important that the checkbox
goes ON if the mouse hits the box, NOT the text. I've accomplished
this, more or less, but the issue is receiving the mouse event because
I click one checkbox in a row, but ALL of them turn to NSOnState....
Hello All,
I am having an issue that is perplexing me. I have a NSMatrix using NSButtonCells to display a series of checkboxes. Because the Text is RTF I have to set AttributedTitle instead of Title. But even with wordwrap set to true it will only wrap Title and never does it to AttribtuedTitle.
Has anyone out there ever dealt with thi...
Hi all,
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
NSAttributedString *selectedCellAttribute;
NSFont *selectedCellFon...