NSSliderCells in an NSTableView not playing ball with with drag and drop
NSSliderCells in an NSTableView not playing ball with with drag and drop
- Subject: NSSliderCells in an NSTableView not playing ball with with drag and drop
- From: Rory Prior <email@hidden>
- Date: Sat, 1 Jan 2005 03:44:00 +0000
Hi list,
I've been pulling my hair out trying to figure out how to get a
subclass of NSSliderCell (in this case a star rating control) working
in a table view that supports row dragging, ala iTunes. Both the drag
and drop and star controls work perfectly separately, but not together.
This table view only acts as a drag source by the way, not a
destination.
I've tried subclassing NSTableView and catching the mouseDown event,
only passing the event on to the super class if it's in a column other
than my star rating cells. Problem is I can't figure out how to send
that mouse action on to the cells myself and there doesn't seem to be a
programatic way of turning off row dragging in a table view - once you
implement the relevant methods in the datasource it's always on.
I know the cell's themselves don't do event handling, but there must be
some way in the NSTableView's mouseDown that it's passing the mouse
event information. Sadly this doesn't seem to be documented in the
public API unless I'm missing something. I've tried the obvious things
like getting the column's datacell and telling it to performClick and
so on, but all without success.
Has any one had any joy with this? There doesn't seem to be anything
useful in the archives and various Google searches turned up nothing.
Happy new year,
Rory
--
ThinkMac Software
http://www.thinkmac.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden