Re: Cocoa: dragging files from Finder
Re: Cocoa: dragging files from Finder
- Subject: Re: Cocoa: dragging files from Finder
- From: Jens Alfke <email@hidden>
- Date: Sat, 5 Jun 2010 19:14:00 -0700
On Jun 3, 2010, at 10:27 AM, Marcin Górski wrote:
> - (id)init {
> [super init];
> [self registerForDraggedTypes: [NSArray arrayWithObject: NSFilenamesPboardType]];
> return self;
> }
That method won’t be called. Objects loaded from nibs don’t go through the same initialization process as objects created from scratch. The right place to put this kind of setup code for a nib-loaded object is in an -awakeFromNib method. Try that and it should fix it.
—Jens_______________________________________________
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