• 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
[NSApp mainWindow] weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSApp mainWindow] weirdness


  • Subject: [NSApp mainWindow] weirdness
  • From: email@hidden (Simon Fraser)
  • Date: Mon, 01 Jul 2002 19:34:51 -0700

When does NSApplication set up its 'mainWindow'? I'm seeing cases
where we've got a window on the screen, but [NSApp mainWindow] is
still returning null (this is often at application startup time).
Some time later, [NSApp mainWindow] will correctly return this window.

Does [NSApp mainWindow] only get set after we've been back through
the main event loop after creating the window? Or is there some
other timing wierdness involved?

Simon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [NSApp mainWindow] weirdness
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Strange Question
  • Next by Date: Re: Can't cram an NSRange into an NSArray?
  • Previous by thread: Strange Question
  • Next by thread: Re: [NSApp mainWindow] weirdness
  • Index(es):
    • Date
    • Thread