Re: concludeDragOperation
Re: concludeDragOperation
- Subject: Re: concludeDragOperation
- From: email@hidden
- Date: Tue, 17 Aug 2010 13:20:23 -0600
More code I forgot in the previous reply
/* draggingEntered */
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
{
NSLog(@"draggingEntered");
if ((NSDragOperationCopy & [sender draggingSourceOperationMask]) ==
NSDragOperationCopy)
return NSDragOperationCopy;
else
return NSDragOperationNone;
}
/* draggingExited */
- (void)draggingExited:(id <NSDraggingInfo>)sender {
NSLog(@"draggingExited");
[self reloadData];
[self deselectAll:self];
[self selectStartupDirectory];
m_dragExited = YES;
// NSRect visibleRect = [self visibleRect];
// [self setNeedsDisplayInRect:[self visibleRect]];
}
/* draggingEnded */
- (void)draggingEnded:(id <NSDraggingInfo>)sender
{ NSLog(@"draggingEnded");
[self reloadData];
[self deselectAll:self];
[self selectStartupDirectory]; }
On Aug 17, 2010, at 10:54 AM, Tony Romano wrote:
I assume you are letting the control actually highlight the selected
rows? If you are, then all the highlight/un-highlights are handled
automatically. Are u doing any sort of mouse tracking and
highlighting code to determine which items are selected? Can you
provide more info like just the code for section that implement the
drag/drop parts and any mouse overrides?
-Tony
On Aug 16, 2010, at 6:28 PM, Erik Buck wrote:
I have never seen the specific problem reported, but I have some
suggestions:
1) Are you using a retained or non-retain window as opposed to a
buffered window? You want a buffered window.
2) Is the view layer backed? I don't know ifthat could cause the
problem, but I is a path to investigate.
3) Have you turned on Quartz Debugging to see which areas of the
window are being redrawn? If so, where the highlighted areas
redrawn or not?
4) Are you recursively causing displays? That doesn't work, so
don't do it. Have you tried [outlineView
performSelector:@selector(display) withObject:nil afterDelay:0.0f]
instead of calling display again as the side effect of a display
message?
--- On Mon, 8/16/10, email@hidden <email@hidden> wrote:
From: email@hidden <email@hidden>
Subject: concludeDragOperation
To: "Cocoa-Dev Cocoa-Dev" <email@hidden>
Date: Monday, August 16, 2010, 6:02 PM
The docs say:
Invoked when the dragging operation is complete, signaling the
receiver to perform any necessary clean-up.
My question is how does one clean up all highlight artifacts in an
NSOutlineView such as these:
http://highrolls.net/high_light_issue/page.html
I have tried -display , -reloadItem and reloadData all to no avail.
Steve Jobs was stumped and suggested this list might be helpful.
Was he right?
-koko
_______________________________________________
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:
@hotmail.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