• 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: NSImageView blocking drag -- solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView blocking drag -- solved


  • Subject: Re: NSImageView blocking drag -- solved
  • From: Gordon Apple <email@hidden>
  • Date: Sat, 03 May 2008 12:17:25 -0500

    That post was in the middle of the night when I couldn't sleep.  I
researched the archives this  morning and found the solution.  I added an
outlet in my controller to the NSImageView and in awakeFromNib called
unregisterDraggedTypes for the NSImageView.  Problem solved.  However, I
still think that this should be the default behavior for a disabled view.


>
>   I have a custom view that contains a (covering) NSImageView.  The latter
> is disabled.  I want the custom view to handle all drag operations.  This
> works fine as long as I don't drag in a type (e.g., NSFilenamesPboardType)
> that NSImageView directly supports.  setAllowsCutCopyPaste:NO for the
> NSImageView does not help.  The drop never gets to the custom view (yes, it
> registers the types) but is simply rejected by the disabled NSImageView.  My
> custom view's dragOperationForDraggingInfo never gets called in such case.
> If I squeeze down the NSImageView and drag directly to the exposed custom
> view, it works fine.
>
>   Shouldn't disabling the NSImageView make it effectively invisible for
> all such operations?  Bug report time?
>

_______________________________________________

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

  • Prev by Date: NSPopupButton displaying extra item when model changed
  • Next by Date: Reading XML
  • Previous by thread: NSPopupButton displaying extra item when model changed
  • Next by thread: Reading XML
  • Index(es):
    • Date
    • Thread