Yes it is very werid. I am using a custom cell, but its only to
change the drawing of the text, nothing else.
What I am going to try is to remove the view from IB and put a fresh
one in. Maybe some setting in IB got corrupted, that's the only thing
I can think of now.
- Koen.
On Sun, Nov 13,
On 15/11/2011, at 12:05 AM, Koen van der Drift wrote:
I am using a custom cell
This is most likely the cause. Try substituting a standard text cell and see if
the drag works. If so, you know where to look.
Cells are often very tricky in all sorts of subtle ways, and hard to get right.
On Nov 14, 2011, at 4:49 PM, Graham Cox wrote:
On 15/11/2011, at 12:05 AM, Koen van der Drift wrote:
I am using a custom cell
This is most likely the cause. Try substituting a standard text cell and see
if the drag works. If so, you know where to look.
Cells are often very
On 11/14/11 3:45 PM, Koen van der Drift wrote:
You were right. Implementing the custom cell, even though I only was
calling drawFrameRect caused the DD not to work.
Are you subclassing NSCell directly or using one of its subclasses?
Out of the box, NSTableView (or, rather, NSTableColumn) uses
On Nov 14, 2011, at 7:15 PM, Conrad Shultz wrote:
Are you subclassing NSCell directly or using one of its subclasses?
Out of the box, NSTableView (or, rather, NSTableColumn) uses an
NSTextFieldCell, which importantly inherits from NSActionCell, which
itself adds lots of core functionality
Ah...
Have you read the documentation for NSCell's -hitTestForEvent:inRect:ofView: ?
In particular the note:
If the cell not disabled, and it would track, return NSCellHitContentArea
|NSCellHitTrackableArea.
I believe that for dragging to work you do NOT want to return
On Nov 14, 2011, at 5:05 PM, Koen van der Drift wrote:
I'm indeed subclassing NSCell. Using NSActionCell doesn't make a difference.
But with NSTextFieldCell it works.
Yeah, generally you will never subclass NSCell (or NSActionCell) directly. I
can’t remember ever doing it. Instead you
Good info, thanks.
I also noticed that now with using NSTextFieldCell, I get a tooltip for each
cell. Which I can use :)
- Koen.
On Nov 14, 2011, at 8:21 PM, Conrad Shultz wrote:
Ah...
Have you read the documentation for NSCell's -hitTestForEvent:inRect:ofView: ?
In particular the
Hi,
I am setting up DD from an NSTableView, but I cannot drag any items. I have
added registerForDraggedTypes and - (BOOL)tableView:(NSTableView *)aTableView
writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard
*)pboard to my table view controller, and the controller is
On Nov 13, 2011, at 6:12 PM, Koen van der Drift wrote:
I am setting up DD from an NSTableView, but I cannot drag any items. I have
added registerForDraggedTypes and - (BOOL)tableView:(NSTableView *)aTableView
writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard
10 matches
Mail list logo