• 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: Problem Displaying a Sheet During Drag-and-Drop (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Problem Displaying a Sheet During Drag-and-Drop (From: David Emme <email@hidden>)
 >Re: Problem Displaying a Sheet During Drag-and-Drop (From: Uli Kusterer <email@hidden>)
 >Re: Problem Displaying a Sheet During Drag-and-Drop (From: David Emme <email@hidden>)

  • Prev by Date: Re: How to draw a rectangle around a (graph) view?
  • Next by Date: Re: How to draw a rectangle around a (graph) view?
  • Previous by thread: Re: Problem Displaying a Sheet During Drag-and-Drop
  • Next by thread: method called from different threads(?) using a lock
  • Index(es):
    • Date
    • Thread