• 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: Building a view transparent to dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a view transparent to dragging


  • Subject: Re: Building a view transparent to dragging
  • From: Jerome Foucher <email@hidden>
  • Date: Mon, 24 Oct 2005 16:41:58 +0200

Le 24 oct. 05 à 16:18, John Timmer a écrit :



I already call [view setEditable:NO], so that trick doesn't seem to
work for me.

So I guess I will have to embed the image into the "border"-view....


You could always give your border view a reference to the embedded image
view, and forward DnD events to it. It may not be the easiest thing to set
up, but if you never have the border without an associated image, it should
work fine.

Unfortunately, one border-view can be positionned on top of several images, and as it's designed right now, the border-view has no knowledge of which view is under it. The thing is pretty generic and is built from a template. One can freely design a template that stacks several border-views on top of several images.


I could possibly enumerate through the hierarchy of the container's view to find out which views are possibly under the border-view. Then I could make a hitTest on the view just below the border-view to find out which image-view is under the cursor and pass draggingEntered to this view, but I was just looking if someone know an easier way, which I wasn't aware of....

Jérome


_______________________________________________ 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: Building a view transparent to dragging
      • From: glenn andreas <email@hidden>
References: 
 >Re: Building a view transparent to dragging (From: John Timmer <email@hidden>)

  • Prev by Date: Font toolbar button doesn't close Font panel
  • Next by Date: How to find out if horizontal scrollbar in WebView is currently active or not
  • Previous by thread: Re: Building a view transparent to dragging
  • Next by thread: Re: Building a view transparent to dragging
  • Index(es):
    • Date
    • Thread