• 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
Why does NSImageView Mask the Drop Zone of a Subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does NSImageView Mask the Drop Zone of a Subview


  • Subject: Why does NSImageView Mask the Drop Zone of a Subview
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 10 May 2006 08:09:43 -0700
  • Thread-topic: Why does NSImageView Mask the Drop Zone of a Subview

I'm trying to make a "File Drop" subview into which files can be dropped.
This is similar to Seth Willits' FileDropView and Apple's CocoaDragAndDrop,
but since I need a lot of these, I've expanded it into a subview with two
outlets:

    IBOutlet NSImageView* image ; // Shows image of file
    IBOutlet NSTextView* label ;  // Shows name of file

My only problem is that the frame of the NSImageView is excluded from my
subview's drop zone.  That is, my drop zone has a hole in the middle; I get
draggingExited: when the mouse enters the frame of the NSImageView.

This does not happen when the mouse enters the frame of the NSTextView, (or
that of an NSButton, which I experimented with).

What's so special about the NSImageView?  It is "enabled".

IB's Layout > Send To Back does not help.

Thanks,

Jerry

FileDropView:
http://www.cocoadev.com/index.pl?DroppingFileInWell

CocoaDragAndDrop:
http://developer.apple.com/samplecode/CocoaDragAndDrop/CocoaDragAndDrop.html


 _______________________________________________
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

  • Follow-Ups:
    • Re: Why does NSImageView Mask the Drop Zone of a Subview
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Dynamic data model in Core Data
  • Next by Date: Re: Quit menu item undimming itself?!
  • Previous by thread: Re: X11 selection mechanism in Cocoa applications
  • Next by thread: Re: Why does NSImageView Mask the Drop Zone of a Subview
  • Index(es):
    • Date
    • Thread