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