Re: NSBrowser dragging
Re: NSBrowser dragging
- Subject: Re: NSBrowser dragging
- From: Micha Fuhrmann <email@hidden>
- Date: Sat, 08 May 2010 18:38:36 +0800
Dear Corbin,
Thanks for responding, however I must contradict you, vertical drag with ComplexBrower does work under 10.6. It does so because its cell is an NSTextfieldCell which inherits from NSActionCell. "Since NSBrowserCell does not inherit from NSActionCell, it doesn’t hold a target and action value and can’t directly participate in the target/action paradigm" quoted from your documentation "Introduction to Browsers" (Last updated: 2004-08-31). I believe that is why it doesn't work.
Since I want my software to be 10.5 compatible, it looks like I'm out of luck. Setting the cellClass to NSTextFieldCell does nothing, the NSBrowser under 10.5 still creates NSBrowserCells. ComplexBrower uses 10.6 delegates methods and manages to set the cell class to text field cell.
If anyone has any solution it would be great.
Michael
On 8 mai 2010, at 00:50, Corbin Dunn wrote:
>
> On May 7, 2010, at 1:01 AM, Micha Fuhrmann wrote:
>
>> Hi everyone,
>>
>> I've ran out of ideas, I just don't now what's wrong.
>>
>> I have an NSBrowser Object.
>>
>> I've set the delegate to another class which implements:
>>
>> - (BOOL)browser:(NSBrowser *)browser canDragRowsWithIndexes:(NSIndexSet *)rowIndexes inColumn:(NSInteger)column withEvent:(NSEvent *)event
>>
>>
>> If I click-drag in the browser either right or left, the method is called. But if I click-drag up or down, it isn't. All that happens is the cells get selected. I've compared with the Apple example "ComplexBrowser", and i just cannot see any difference.
>
> The ComplexBrowser also works the same way. (I just tried it to make sure).
>
> Please log a bug requesting this ability. There is no way to customize it at the current time.
>
> --corbin
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden