• 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
custom drag image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

custom drag image


  • Subject: custom drag image
  • From: Saratchandra Kongara <email@hidden>
  • Date: Wed, 27 Nov 2002 15:21:17 -0500

Hello,
I like to implement a custom drag image with a snapshot of the selected
rows in a table view. I am not using the built-in mechanism because, I
am using a custom NSTableView subclass for implementing alternating row
colors and the default drag image renders the selected text in white
color (barely visible) sometimes(randomly changes between black and
white).

I think I have to create a custom NSImage object to return from this
method.

- (NSImage*)dragImageForRows:(NSArray*)dragRows
event:(NSEvent*)dragEvent
dragImageOffset:(NSPointPointer)dragImageOffset;

I am not sure how to compose an image from row(s) of text. Any help is
appreciated. Thanks

Regards
Sarat
_______________________________________________
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.

  • Follow-Ups:
    • Re: custom drag image
      • From: email@hidden
  • Prev by Date: Re: Light DB Question
  • Next by Date: Re: "Subclassing" NIB files
  • Previous by thread: Replace 'objc_msgSend()'?
  • Next by thread: Re: custom drag image
  • Index(es):
    • Date
    • Thread