• 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: "I. Savant" <email@hidden>
  • Date: Tue, 6 May 2008 10:34:56 -0400

> With help from Stéphane Sudre, I found that calling
> -registerForDraggedTypes: somewhere outside the destination's -init: method
> solves the issue. Can anyone shed light on why this would be?

  I've never personally experienced the problem you're describing, but
if you're literally calling this from an init method with this
signature:  - (id)init  ... then "You're Doing It Wrong". Views and
their subclasses use -initWithFrame: as their designated initializer.
If your call to -registerForDraggedTypes: is in an -init method, it
won't get called unless you're creating your view with that method ...
which you shouldn't do because it's a view and "strange things will
happen".

--
I.S.
_______________________________________________

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>)

  • Prev by Date: Re: -draggingEntered: never gets called [solved?]
  • Next by Date: Disable HUD in WebKit pdf display
  • Previous by thread: Re: -draggingEntered: never gets called [solved?]
  • Next by thread: Re: -draggingEntered: never gets called [solved?]
  • Index(es):
    • Date
    • Thread