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
2 answers

How can I create itunes/finder/mail style table view

I'd like to create the content lists in the style of the Finder window's left pane (similarly in the style Mail/iTunes/etc). Currently my NSTableView/NSOutlineView implementation looks a little basic. Is there any tutorial that can help me mimic the…
jkcl
  • 2,141
  • 3
  • 16
  • 19
0
votes
1 answer

Marking rows in NSTableView as dirty

I subclassed NSTextFieldCell to do custom drawing and highlighting. I am essentially making a table with cells similar to the one found in Lion Mail, but my code is targeting Snow Leopard. The problem that I'm running into is this: user selects a…
dteoh
  • 5,794
  • 3
  • 27
  • 35
0
votes
2 answers

My Textfield UITableViewCell and my textfieldShouldReturn are not seeing eye to eye

After selecting a cell and writing something in it, I would like to hit the return/next button on the keyboard and simply move to the next cell, that's what I am trying to achieve. But after placing a breakpoint on my method textfieldShouldReturn, I…
0
votes
1 answer

reset image in tableView imageCell is blurry

i'm trying to show an 'info' icon during a cursor 'rollover' on an NSTableView cell. i'm getting a copy of the cell's image, drawing the 'info' icon on it, and telling the cell to setImage with this copy. just drawing the icon will scale it and it…
lulu
  • 669
  • 10
  • 26
0
votes
0 answers

How to get a cell's frame in hitTestForEvent method in the NSBrowserCell subclass?

How do I get the button's rect in this method? In the below method the NSRect buttonRect = ??? is the place where I need to get the frame / rect of NSButtonCell object named _buttonCell. - (NSCellHitResult)hitTestForEvent:(NSEvent *)event …
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
0
votes
1 answer

Creating NSAttributedString on background queue: "[NSCell init] must be used from main thread only"

I have a Cocoa app based on NSDocument that presents text documents to the user. Document contents are read on a background queue, which causes a problem: I use NSAttributedString with images, i.e. it can contain NSTextAttachment and…
Mark
  • 6,647
  • 1
  • 45
  • 88
0
votes
1 answer

How to draw NSPopupButtonCell highlighted image

I have NSPopupButton inside NSToolbar that has borderder = false which is having some color burn blend when highlighted. If I use bordered = true the image is drawn with nice dark overlay. I am trying to achieve to draw highlighted state the same…
Marek H
  • 5,173
  • 3
  • 31
  • 42
0
votes
2 answers

NSView in NSCell

I've read a lot about this but i can't get it to work, i have a custom NSCell with this code #import "ServiceTableCell.h" @implementation ServiceTableCell -(void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { NSLog(@"I'm being…
Diego Torres
  • 5,308
  • 5
  • 25
  • 29
0
votes
2 answers

How to setup a NSTableView with a custom cell using a subview

I am trying to setup a NSTableView with a custom cell using an ArrayController and Bindings. To accomplish this I added a subview to the custom cell. The data connection seems to work somewhat. Though, there seems to be a redraw problem which I…
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
1 answer

subclassing NSCell - [self objectValue] with drawInteriorWithFrame:inView: returns strange results

I have an NSTableView in my main window NIB file that uses a dynamically created datasource - that is, the array of dictionary's is created dynamically when required - in one of my classes. So it is not bound by any controllers in IB. The tableview…
Byron Rode
  • 525
  • 5
  • 15
0
votes
1 answer

How to not truncate text in NSCellTextView Swift 5

I populated a NSTableView with some data, and one of the cells truncates the text. I have searched for how to not truncate this string, but I only found resources indicating how to voluntarily truncate the text. I fill the text like this :…
Clovel
  • 58
  • 10
0
votes
1 answer

NSCell not properly displayed

I have an custom NSCell in an NSTableView and it doesn't display correctly. The table view has the right number of items in it but they're empty except for the first one. The first one shows the cell but its values change randomly when I click…
Jompa
  • 3
  • 2
0
votes
1 answer

NSOutlineView Control HighLight and indentation

In my Outline view, i am using CustomCell, which is nothing but took the code from Cocoa ImageTextCell RefrenceCode with some modification, Is it possible to change the highlight color for a cell ? So far i have done following, -…
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
0
votes
3 answers

How to allow Paste (cmd+v) into NSTableView cell?

I've implemented copying tableView selected cell value by shortcut cmd+C. Now I was trying to implement the pasting cmd+V. When I click on tableView cell, it gets selected. Another click, I'm editing it. While editing, I press cmd+V and nothing…
Vito Valov
  • 1,765
  • 1
  • 19
  • 37
0
votes
3 answers

Select text (content) instead of cell with NSCell

I'm currently working in a project with a NSOutlineView... I use, of course, NSCell(s) and I need to let the ability to select text inside the cell... Or at least... prevent the selection (and highlight) of the cells... I search all options on IB,…
PofMagicfingers
  • 215
  • 2
  • 14