RE: Weird Sheet Problem
RE: Weird Sheet Problem
- Subject: RE: Weird Sheet Problem
- From: Matt <email@hidden>
- Date: Mon, 15 Jan 2007 17:06:52 -0500
If you must launch a sheet as soon as the app launches, for whatever
reason, I would place that code in -applicationDidFinishLaunching to
avoid trouble. Trying to open a sheet when the window isn't on
screen yet (in -awakeFromNib) can cause all sorts of problems, as you
mentioned. Placing the sheet in the later method should solve your
issue.
Matt
http://www.macfanatic.net
On Jan 15, 2007, at 4:44 PM, email@hidden wrote:
On 16/01/2007, at 8:29 AM, Brian Ganninger wrote:
The timer approach isn't guaranteed to work. If you application
were to take dramatically longer for some (unforeseen) reason when
loading the associated nib the timer's firing could fall within the
awakeFromNib and you'd still end up with the issue you encountered.
- brian 'bgannin' ganninger
That may not be the case. Remember timers aren't asynchronous; they
get fired when the run loop processes them and that won't happen
until the NIB has completely finished loading.
Can the sheet code be put in applicationDidFinishLaunching instead or
is the NIB being loaded at a later stage?
- Chris
_______________________________________________
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