Hey Thomas,

Didn't notice it was you, remember - the problem I had with my IKImageBrowserView and dragging files out of it? Thanks again for your help! I'm going to subclass my view now and see if I can get it to work. If so I'll post my solution here of course in case someone finds it useful.

- Tobias

On Jan 29, 2010, at 10:07 AM, Thomas Goossens wrote:

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/tgoossens %40mac.com

This email sent to tgooss...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/tgoossens%40mac.com

This email sent to tgooss...@mac.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to