• 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: cocoa -draggingImageComponents not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa -draggingImageComponents not called


  • Subject: Re: cocoa -draggingImageComponents not called
  • From: Martin Hewitson <email@hidden>
  • Date: Fri, 12 Apr 2013 06:28:32 +0200

OK, one solution I found is to embed all my subviews in a container view, and do the drawing there. Then I have to handle selection, but that turned out to be not too bad. So, unless anyone suggests a better way to do this, this will do for now.

Thanks!

Martin

On Apr 11, 2013, at 08:46 PM, Martin Hewitson <email@hidden> wrote:

> Dear list,
>
> I'm continuing my adventures in view-based tableview land. I've got drag-n-drop working nicely, but I'd like to improve the image that's shown during a drag. Currently I just get the subviews of my NSTableCellView subclass, but I don't get the background that's drawn in -drawBackgroundInRect: of my NSTableRowView subclass. The documentation seems to suggest that one should override -draggingImageComponents in the NSTableCellView subclass, but it seems never to be called.
>
> Can anyone shed any light on this? Should I be overriding something in the NSTableRowView subclass instead? Is there a switch I need to flick to get -draggingImageComponents to be called?
>
> Cheers,
>
> Martin
>
>
>
>
>
>


_______________________________________________

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

References: 
 >cocoa -draggingImageComponents not called (From: Martin Hewitson <email@hidden>)

  • Prev by Date: Re: UICollectionViewCell
  • Next by Date: Re: Passing NSTextField Pointer to IOUSBInterfaceInterface182 Callback
  • Previous by thread: cocoa -draggingImageComponents not called
  • Next by thread: Anyone seen [NSCursor set] crash by calling abort()?
  • Index(es):
    • Date
    • Thread