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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to