Questions tagged [nscell]

The NSCell class provides a mechanism for displaying text or images in an NSView object without the overhead of a full NSView subclass. It’s used heavily by most of the NSControl classes to implement their internal workings.

The NSCell class provides a mechanism for displaying text or images in an NSView () object without the overhead of a full NSView subclass. It’s used heavily by most of the NSControl () classes to implement their internal workings.

References:

115 questions
0
votes
1 answer

How can I simulate toggle on an NSRadioButton?

In OS X, I have an NSTableView with a row of NSButtonCells. These need to appear exactly like buttons of type NSRadioButton, but act more like an NSSwitchButton. In particular, if the state is NSOnState and I click it with the mouse, I need to…
Michael57
  • 85
  • 7
0
votes
1 answer

Custom selection on NSOutlineView and NSCell (NSTextFieldCell)

Hello developers around the world :) Today I have a question about the NSOutlineView customisation, the environment is: -OS X 10.7+ - an Outline view with subclassed NSTextFieldCell the problem: I want customise the colour end the gradient for the…
Kappe
  • 9,217
  • 2
  • 29
  • 41
0
votes
1 answer

NSOutlineView, expansion and collapsing can cause cells to clip content

I am experiencing weird visual artefacts during rapid expansion and collapsing of a view based NSOutlineView's groups. If a group is expanded, and I double click (collapse followed quickly by expansion) the expand arrow, the content is clipped. My…
theraven
  • 4,825
  • 3
  • 20
  • 20
0
votes
1 answer

cocoa: custom text in NSCell for NSTableView

I have problems for customizing the text in the NSCell for the NSTableView. Below is the main window: The window has a table view which shows an icon, a title,a progress indicator and a message.As my computer is 10.6, I implement it with cell-based…
scorpiozj
  • 2,687
  • 5
  • 34
  • 60
0
votes
1 answer

NSCell title isn't updated until requested

I'm trying to implement a custom 'NSTextField' that automatically resizes itself while the user insert text. It's a simple enough task and here is the code I'm using: - (void)textDidChange:(NSNotification *)aNotification { [super…
Jacopo
  • 1,031
  • 2
  • 12
  • 25
0
votes
1 answer

NSCell's unexpected behavior

I'm implementing a subclass of NSActionCell (inside an NSTableView), and noticing something unusual. If I set a property (isEditing) when a user clicks a cell, the value of that property is lost, because NSCell is released shortly thereafter. I…
Melllvar
  • 2,056
  • 4
  • 24
  • 47
0
votes
1 answer

Editing custom NSCell

I'm in the process of creating a custom NSCell, which will work like the shortcut capture cells in XCode, and trying to figure out how to intercept edit requests (for instance, when a user double-clicks a cell). Is there some way to determine that…
Melllvar
  • 2,056
  • 4
  • 24
  • 47
0
votes
1 answer

Refreshing an NSCell when another NSCell is changed

I have two columns in my NSOutlineView. One is a Text and image cell (similar to the class in the DragNDropOutlineView Apple sample code). Next to that is a custom NSCell subclass called "XFToggleCell" that is used to display a visibility icon…
Todd Burch
  • 200
  • 8
0
votes
1 answer

Handling mouse over on NSCell (NSTextAttachmentCell)

Can't figure out how to handle mouse move over NSCell (or NSTextAttachmentCell). Is it possible ?
dmitrynikolaev
  • 8,994
  • 4
  • 30
  • 45
-1
votes
1 answer

Setting Multiline Title To NSButton In Cocoa App

I understand the NSButton guidelines for setting title to NSButton, No offence but the requirement should be fulfilled in my case. I want to show NSButton title in two lines. NSButton *btn = [[NSButton alloc] init]; [btn setTitle:@"multiple line…
Vikram Sinha
  • 581
  • 1
  • 10
  • 25
1 2 3 4 5 6 7
8