• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IKImageBrowserView drop operation always highlighting a specific row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageBrowserView drop operation always highlighting a specific row


  • Subject: Re: IKImageBrowserView drop operation always highlighting a specific row
  • From: Tobias Jordan <email@hidden>
  • Date: Fri, 29 Jan 2010 11:47:37 +0100

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 again!

- 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 (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:
@mac.com


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


References: 
 >IKImageBrowserView drop operation always highlighting a specific row (From: Tobias Jordan <email@hidden>)
 >Re: IKImageBrowserView drop operation always highlighting a specific row (From: Thomas Goossens <email@hidden>)
 >Re: IKImageBrowserView drop operation always highlighting a specific row (From: Tobias Jordan <email@hidden>)
 >Re: IKImageBrowserView drop operation always highlighting a specific row (From: Thomas Goossens <email@hidden>)

  • Prev by Date: Re: Hot to define a connection from source code?
  • Next by Date: Detect HFS path type and coerce to POSIX
  • Previous by thread: Re: IKImageBrowserView drop operation always highlighting a specific row
  • Next by thread: Apparent NSTableView Bug
  • Index(es):
    • Date
    • Thread