• 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: NSBrowser headache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser headache


  • Subject: Re: NSBrowser headache
  • From: Nick Zitzmann <email@hidden>
  • Date: Sat, 10 Apr 2004 23:59:21 -0600

On Apr 10, 2004, at 11:14 PM, eblu wrote:

1. during the drag, I highlight the individual cells at the top or the
bottom to indicate where the drop will end up (this is done in my own
BrowserCell subclass, it is not related at all to the Browser's
Highlighting system, as NSBrowser's highlighting system isn't
documented). Currently the bottom Most cell Never highlights on the
bottom. Subsequently, my drops Never show up at the end of my list.

Can you show us the source please?

Also, did you subclass NSBrowser or NSMatrix to implement DnD? Subclassing NSMatrix is the correct way of doing this; subclassing NSBrowser is not.

I've noticed that the browser doesn't use my delegate method when
I click on a row with the mouse... but it does when I call it ([self
selectRow]) from my draggingUpdated method. I wish someone could
explain just what the browser Does call when the mouse clicks a Cell.

I'm not surprised by this. I've noticed that some other browser delegate methods do not work as documented, and I've filed bug reports on them as I've found them. You should do the same: <http://bugreport.apple.com/>

I think I implemented this by detecting the selection change in the NSMatrix subclass (which has to be done in both -mouseDown: and -selectCellAtRow:column:), then fishing out the browser's memory address from the superview hierarchy, and sending a message to its delegate stating that the selection had been changed. It's a long workaround, but it worked for me...

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSBrowser headache
      • From: Drew McCormack <email@hidden>
References: 
 >NSBrowser headache (From: eblu <email@hidden>)

  • Prev by Date: NSBrowser headache
  • Next by Date: windowDidLoad Not Called
  • Previous by thread: NSBrowser headache
  • Next by thread: Re: NSBrowser headache
  • Index(es):
    • Date
    • Thread