• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Highlighting a valid drop target (serious dead end)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 &#65533;add&#65533;
some highlighting behaviour when
dragging to a valid destination - I just can&#65533;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

  • Follow-Ups:
    • Re: Highlighting a valid drop target (serious dead end)
      • From: Corbin Dunn <email@hidden>
    • Re: Highlighting a valid drop target [SOLVED]
      • From: desktoast music productions <email@hidden>
  • Prev by Date: does windowDidClose or not?
  • Next by Date: Re: does windowDidClose or not?
  • Previous by thread: Highlighting a valid drop target (serious dead end)
  • Next by thread: Re: Highlighting a valid drop target [SOLVED]
  • Index(es):
    • Date
    • Thread