Re: Problem Displaying a Sheet During Drag-and-Drop (SOLVED)
Re: Problem Displaying a Sheet During Drag-and-Drop (SOLVED)
- Subject: Re: Problem Displaying a Sheet During Drag-and-Drop (SOLVED)
- From: David Emme <email@hidden>
- Date: Fri, 25 May 2007 11:47:59 -0700
Executive Summary: Opps!
After spending too much time wandering down the garden path created
by the (arguably misleading) error message muttering about modal
sessions and modal windows, I finally discovered my simple mistake:
While careful to wire up all of the controls on my sheet window in
IB, I had neglected to wire up the IBOutlet connection in File's
Owner to the sheet NSWindow itself.
Thus, in spite of loading the nib in my code, I was effectively doing:
[NSApp beginSheet:nil ...
Having fixed that stupid error, now dropping my sheet from within
performDragOperation: seems to work just fine.
Cheers!
-Dave
--
FAILURE IS NOT AN OPTION!
It comes bundled with the software.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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