Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: initWithFrame deosn't get called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithFrame deosn't get called

Try doing it from awakeFromNib:

I had an issue where registerForDraggedTypes wasn't working if called too early, though I forget the details exactly. Moving the registration to awakeFromNib (or even windowControllerDidLoadNib if you have an NSWindowController) fixed it so I didn't investigate the problem too deeply. I got the impression it was because if it's called before the view is added to the window, the registration was ignored, but I may be wrong abut that.



On 30 Jun 2008, at 11:11 pm, Micha Fuhrmann wrote:

How can I call registerForDraggedTypes for each one of the Browser's Matrix as ithey init?


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)

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

 >initWithFrame deosn't get called (From: Micha Fuhrmann <email@hidden>)

Visit the Apple Store online or at retail locations.

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.