• 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: weird sheet problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird sheet problem


  • Subject: Re: weird sheet problem
  • From: PGM <email@hidden>
  • Date: Mon, 15 Jan 2007 16:41:32 -0500


On 15-Jan-07, at 15:53 PM, Dave Sopchak wrote:

Kerry,
Thanks for the tip. I decided to just put a timer in awakeFromNib to start the sheet 0.2 seconds later, and it worked. Sumbitch. I should also try your approach. Bug report?


Dave


Instead of a timer, it is handier to use [self performSelector:@selector(showNewSerialSheet) withObject:nil afterDelay:0.2];


I do not know whether a bug report is warranted, as I see some logic in it. For one thing, it makes sense (to me at least) that a sheet cannot and should not be attached to a window that is not visible. It also makes sense that the window is not yet on the screen when awakeFromNib is called, as that gives you the chance to set the correct states and values for all the items within the window. Combining these two, it follows that a sheet cannot be attached in awakeFromNib.

Patrick
_______________________________________________

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


  • Follow-Ups:
    • Re: weird sheet problem
      • From: Dave Sopchak <email@hidden>
References: 
 >Re: weird sheet problem (From: Keary Suska <email@hidden>)
 >Re: weird sheet problem (From: Dave Sopchak <email@hidden>)

  • Prev by Date: Re: howto draw math forumulas
  • Next by Date: Re: weird sheet problem
  • Previous by thread: Re: weird sheet problem
  • Next by thread: Re: weird sheet problem
  • Index(es):
    • Date
    • Thread