• 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: Cocoa: dragging files from Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa: dragging files from Finder
      • From: Marcin Górski <email@hidden>
References: 
 >Cocoa: dragging files from Finder (From: Marcin Górski <email@hidden>)

  • Prev by Date: Re: NSData Question... could be a bit odd
  • Next by Date: Re: PDFSelection from a range
  • Previous by thread: Re: Cocoa: dragging files from Finder
  • Next by thread: Re: Cocoa: dragging files from Finder
  • Index(es):
    • Date
    • Thread