• 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: -draggingEntered: never gets called [solved?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -draggingEntered: never gets called [solved?]


  • Subject: Re: -draggingEntered: never gets called [solved?]
  • From: Graham Cox <email@hidden>
  • Date: Wed, 7 May 2008 09:30:48 +1000

I'm not sure if it's documented as such, but I *think* this is expected behaviour. The reality is that the dragging is really implemented by the underlying window (ultimately using Carbon) so if the view has no reference to its window when the drag types are registered, they probably just "get lost". A nib-instantiated window won't have this problem as it's most likely built top down.

Generally it's probably wise to build structures completely (in this case window+views) before trying to set up high-level behaviours on them which probably do assume that things are fully constructed.

G.



On 7 May 2008, at 1:34 am, Michael Gardner wrote:

Upon further investigation, I've found that if I call - registerForDraggedTypes: before adding the view to its parent window with -setContentView:, I never get the -draggingEntered: messages. If I do so afterwards, everything works properly. Is this expected behavior?

_______________________________________________

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: -draggingEntered: never gets called [solved?]
      • From: Michael Gardner <email@hidden>
References: 
 >-draggingEntered: never gets called (From: Michael Gardner <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: Michael Gardner <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: "I. Savant" <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: Michael Gardner <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: "I. Savant" <email@hidden>)
 >Re: -draggingEntered: never gets called [solved?] (From: Michael Gardner <email@hidden>)

  • Prev by Date: Re: -draggingEntered: never gets called [solved?]
  • Next by Date: Re: Threading - How its done?
  • Previous by thread: Re: -draggingEntered: never gets called [solved?]
  • Next by thread: Re: -draggingEntered: never gets called [solved?]
  • Index(es):
    • Date
    • Thread