Re: NSOutlineView autoexpand while drag and drop
Re: NSOutlineView autoexpand while drag and drop
- Subject: Re: NSOutlineView autoexpand while drag and drop
- From: Steve Gehrman <email@hidden>
- Date: Sun, 4 Aug 2002 00:53:18 -0700
Ignore my previous post unless someone else has a better solution.
This hack works great....
(ListView is a subclass of NSOutlineView)
// had to slow down the NSOutlineView drag drop time SNG hack
@implementation ListView (NSDelayedPerforming)
BOOL _hack = NO;
- (void)_scheduleAutoExpandTimerForItem:(id)object;
{
_hack = YES;
[super _scheduleAutoExpandTimerForItem:object];
_hack = NO;
}
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument
afterDelay:(NSTimeInterval)delay inModes:(NSArray *)modes;
{
if (_hack)
{
NSBeep();
delay = delay * 1.5;
}
[super performSelector:aSelector withObject:anArgument
afterDelay:delay inModes:modes];
}
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument
afterDelay:(NSTimeInterval)delay;
{
if (_hack)
{
NSBeep();
delay = delay * 1.5;
}
[super performSelector:aSelector withObject:anArgument
afterDelay:delay];
}
@end
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.