Re: NSBrowser headache
Re: NSBrowser headache
- Subject: Re: NSBrowser headache
- From: Drew McCormack <email@hidden>
- Date: Sun, 11 Apr 2004 18:30:56 +0200
While on this topic, can anyone tell me the accepted way of changing
the height of a row in an NSBrowser? I have tried setting the intercell
spacing of the NSMatrix for each column, but that doesn't seem to work.
Do I have use a custom cell class?
Drew McCormack
On Apr 11, 2004, at 7:59 AM, Nick Zitzmann wrote:
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.
_______________________________________________
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.