• 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? (Uli Kusterer, August Trometer)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer)


  • Subject: Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer)
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 15 Apr 2006 18:23:49 +0200

Am 15.04.2006 um 18:02 schrieb desktoast music productions:

I already tried filling the rect. Problem is - this way I get nothing but a
lightblue rect when dragging, which completely covers the original dragImage
(a transparent version of the dragged row, with text and small icons on it).
That's why I tried to use setBackgroundColor: first).


I haven't tried yet, but maybe there's a way in drawing the lightblue
(background image) first and then drawing the original dragImage on it?



Well, that is to be expected. If you draw on top of an image, you'll cover anything underneath, obviously.


And yes, you should be able to just create a new NSImage of the same size, lockFocus on it and then try filling it with the background color and then drawing the other image on top. Unless the rows in the table have their own background fill (e.g. 100% opaque white), this should get the desired result.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de

_______________________________________________
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: 
 >Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer) (From: desktoast music productions <email@hidden>)

  • Prev by Date: Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer)
  • Next by Date: Re: Adjusting appearance of dragImage? [Solved]
  • Previous by thread: Re: Adjusting appearance of dragImage? (Uli Kusterer, August Trometer)
  • Next by thread: Re: Adjusting appearance of dragImage? [Solved]
  • Index(es):
    • Date
    • Thread