• 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: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?


  • Subject: Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 14 Mar 2011 13:29:50 -0700

On Mon, Mar 14, 2011 at 1:15 PM, Lee Ann Rucker <email@hidden> wrote:
> Is there something I'm missing that would cause it to create the right drag image for me?

If you think about it, you pretty much have to use the old raster
drawing path to generate drag images. Even if you don't call
-drawRect: (which NSCollectionView presumably does to insulate you
from its implementation details), the drag image is a static bitmap. I
suppose you could use a CARenderer to produce a static bitmap from
within -drawRect:.

I believe we've determined that the window update machinery does not
call -drawRect: if you have set up your layer-hosting view correctly.
Printing, and apparently NSCollectionView, will call it directly.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
      • From: Lee Ann Rucker <email@hidden>
References: 
 >Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:? (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
  • Next by Date: Re: CALayers in seperate, overlapping, NSViews don't overlap correctly
  • Previous by thread: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
  • Next by thread: Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?
  • Index(es):
    • Date
    • Thread