• 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: 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


  • Follow-Ups:
    • NSTextField not saving value to CoreData on Sheet Close
      • From: Jon Trainer <email@hidden>
  • Prev by Date: Re: weird sheet problem
  • Next by Date: Re: Mouse location in CG
  • Previous by thread: Re: weird sheet problem
  • Next by thread: NSTextField not saving value to CoreData on Sheet Close
  • Index(es):
    • Date
    • Thread