Re: weird sheet problem
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