RE: Highlighting a valid drop target (serious dead end)
RE: Highlighting a valid drop target (serious dead end)
- Subject: RE: Highlighting a valid drop target (serious dead end)
- From: Keith Blount <email@hidden>
- Date: Sun, 16 Apr 2006 13:53:05 -0700 (PDT)
A private table/outline view method handles the
highlighting of the drop target, namely:
-(void)_drawDropHighlightOnRow:(int)rowIndex
Override that method in your outline view subclass and
draw your own highlight around the row there.
(Obviously the usual warnings apply with regard to
using a private method - you might want to implement
-drawDropHighlightOnRow: as well, just in case Apple
make this method public soon.)
HTH,
Keith
--- ORIGINAL MESSAGE ---
Hi,
I am asking for help one more time, because all my
efforts (been working for
nights now) have seriously come to a dead end.
In my apps view I use DND to alter the data in its
model (by dragging from a
NSTableView to a NSOutlineView). I already changed the
drag image to fit
into my apps overall design. But since then I used
- (void)outlineView:(NSOutlineView *)outlineView
willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn
item:(id)item
And
- (unsigned int)outlineView:(NSOutlineView*)olv
validateDrop:(id
<NSDraggingInfo>)info proposedItem:(id)item
proposedChildIndex:(int)childIndex
As well as
- (NSDragOperation)draggingEntered:(id
<NSDraggingInfo>)sender,
to alter the visualization of valid drop targets (in
my outline view) as
well. But - although I was able to �add�
some highlighting behaviour when
dragging to a valid destination - I just can�t
get rid of the default black
rectangle cocoa provides in such a case.
Who is responsible for creating this? What method do I
have to override to
replace it by my own drop target highlighting
behaviour?
Is there something about it somewhere in the
documentation?
Any suggestions appreciated,
Peter
--
Leselust...?
http://www.peterschwaiger.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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