• 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: Modal Dialog Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modal Dialog Issue


  • Subject: Re: Modal Dialog Issue
  • From: Keary Suska <email@hidden>
  • Date: Mon, 3 Nov 2008 10:11:53 -0700


On Nov 3, 2008, at 9:32 AM, Matt Neuburg wrote:

On Mon, 3 Nov 2008 09:22:25 -0500, "Carmen Cerino Jr." <email@hidden >
said:
I have a button that when clicked will display a modal dialog. My
modal dialog is custom, and lives in its own Xib file. My issue is
that the first time I click the button to make the dialog appear it
does not latch it self onto the window like it should. If I go to
dismiss the dialog with my cancel button, the dialog does not
disappear but focus returns to my main window. Now the strange thing
is if I go to click that button again, the modal dialog works as it
should.

Here's a wild guess. It sounds like maybe the whole nib-loading process is
not getting a chance to complete (the first time you show the dialog). So,
instead of going directly from loadNibName to beginSheet, as you do here,
try "stepping out" to the next event loop after loadNibNamed by calling
another method with peformSelector:...afterDelay. m.


The initial behavior could also be the likely result of the "visible at launch" option checked, which the default for all windows created in IB.


HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: Modal Dialog Issue
      • From: "Carmen Cerino Jr." <email@hidden>
References: 
 >Re: Modal Dialog Issue (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Use of cURL and OpenSSL versus CF and NS Classes
  • Next by Date: Re: Modal Dialog Issue
  • Previous by thread: Re: Modal Dialog Issue
  • Next by thread: Re: Modal Dialog Issue
  • Index(es):
    • Date
    • Thread