Re: IKImageBrowserView drop operation always highlighting a specific row
Re: IKImageBrowserView drop operation always highlighting a specific row
- Subject: Re: IKImageBrowserView drop operation always highlighting a specific row
- From: Thomas Goossens <email@hidden>
- Date: Fri, 29 Jan 2010 10:07:26 +0100
There is no such method on 10.5 so in your case you would have to do everything at the NSView level by implementing the NSDraggingDestination protocol.
So basically you'd have to
- subclass the IKImageBrowserView
- implement the needed methods from NSDraggingDestination (draggingEntered, draggingUpdated, draggingExited...) to achieve what you want.
-- Thomas
On Jan 29, 2010, at 7:04 AM, Tobias Jordan wrote:
> Hi Thomas,
>
> thanks for the information, didn't know there exists such a method but is there a way to do it like this on Mac OS X 10.5 Leopard?
>
> - Tobias
>
> On Jan 29, 2010, at 2:24 AM, Thomas Goossens wrote:
>
>> Hi Tobias,
>>
>> The equivalent of setDropRow:dropOperation for the IKimageBrowserView is
>>
>> - (void) setDropIndex:(NSInteger)index dropOperation:(IKImageBrowserDropOperation)operation;
>>
>> available on 10.6
>>
>> -- Thomas
>>
>>
>> On Jan 28, 2010, at 10:01 PM, Tobias Jordan wrote:
>>
>>> Hey guys,
>>>
>>> first off thank you for your time, I really appreciate it! So I am having problems with the drag'n'drop of the IKImageBrowserView. In my case I am dragging a file to the view which is automatically sorted case insensitive which means the user isn't able to re-arrange objects in it which is fine. It's more like a graphical confusion since the view always highlights an index to be dropped on but this isn't the case since it's automatically rearranging itself so what's required is a highlight of the entire view, not an index.
>>> I'd say I am looking for this NSTableView method for the IKImageBrowserView: setDropRow:dropOperation:… the docs say 'Passing a value of -1 for a row and NSTableViewDropOn as the operation causes the entire table view to hightlighted rather than a specific row'. That's exactly what I am looking for. If there's a way to disable the entire blue selection rectangle, I'd be fine with it too, it's just that I didn't find any way yet and all demos on the net are letting the user sort the view.
>>>
>>> I hope you understand what I am having problems with.
>>>
>>> Thanks and best regards,
>>> Tobias_______________________________________________
>>>
>>> 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
>>
>
> _______________________________________________
>
> 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
_______________________________________________
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