• 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: Michael Gardner <email@hidden>
  • Date: Tue, 6 May 2008 09:44:31 -0500

My actual init method has a different signature, and calls - initWithFrame: on its superclass. I was trying to abstract away extra details, but I shouldn't have made it look like an actual method signature. Sorry about that.

-Michael

On May 6, 2008, at 9:34 AM, I. Savant wrote:

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

  • Prev by Date: Re: Blob Detection with Core Image
  • 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