Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?
Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?
- Subject: Re: Special requirements for the window param of NSAlert beginSheetModalForWindow?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 12 May 2009 15:13:36 -0400
- Organization: Rogue Research Inc.
On 5/12/09 9:49 AM, Greg Guerin said:
>> I ask because sometimes the alert is not displayed as a sheet on that
>> window but instead it's floating on its own, attached to no other
>> window.
>
>I have seen this "detached sheet" behavior when the parent window
>already had a sheet open. Make sure there's not already another sheet
>on the window. And ensure no other subsequent sheet attaches to the
>window until the first sheet is dismissed.
Greg,
Thanks for this suggestion. Turns out in my case the problem was that I
was trying to display the sheet during the parent window's windowDidLoad
which is apparently too early.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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