• 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: Adjusting appearance of dragImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Adjusting appearance of dragImage? (From: desktoast music productions <email@hidden>)

  • Prev by Date: Re: Localizing User Data
  • Next by Date: Re: Running out of process VM
  • Previous by thread: Re: Adjusting appearance of dragImage?
  • Next by thread: Localizing User Data
  • Index(es):
    • Date
    • Thread