Re: Adjusting appearance of dragImage?
Re: Adjusting appearance of dragImage?
- Subject: Re: Adjusting appearance of dragImage?
- From: August Trometer <email@hidden>
- Date: Sat, 15 Apr 2006 09:45:04 -0400
On Apr 15, 2006, at 8:48 AM, desktoast music productions wrote:
- (NSImage *)dragImageForRows:(NSArray *)dragRows event:(NSEvent *)
dragEvent
dragImageOffset:(NSPointPointer)dragImageOffset {
NSImage *newDragImage;
NSSize s;
NSRect imageBounds;
newDragImage = [super dragImageForRows:dragRows
event:dragEvent
dragImageOffset:dragImageOffset];
s = [newDragImage size];
imageBounds.origin = NSMakePoint(0,0);
imageBounds.size = s;
[newDragImage lockFocus];
[[NSColor keyboardFocusIndicatorColor] set];
[NSBezierPath setDefaultLineWidth:3.0];
[NSBezierPath strokeRect:imageBounds];
// *** add this ***
[NSBezierPath fillRect:imageBounds];
[newDragImage unlockFocus];
return newDragImage;
}
Is there a way to
set the background color within this method? Or do I have to put up
my row’s
dragImage from scratch?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden