Thomas, it's working now, easier than I thought:
- (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender
{
[self setNeedsDisplay:YES];
if ([sender draggingSource] == self)
return [super draggingEntered:sender];
return NSDragOperationCopy;
}
Thanks
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 usef
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,
dragging
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
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 y
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