nib not launching properly

  • As a follow-up to my previous query about why a nib might not launch,
    I stumbled across

    - (void)applicationDidFinishLaunching:(NSNotification *)notification

    and, by adding it to the controller, used that to determine that the
    application is not finishing its launching.

    Is there a systematic way to track down why? Thanks.
  • On Sep 18, 2007, at 5:05 PM, Daniel Child wrote:

    > As a follow-up to my previous query about why a nib might not
    > launch, I stumbled across
    >
    > - (void)applicationDidFinishLaunching:(NSNotification *)notification
    >
    > and, by adding it to the controller, used that to determine that
    > the application is not finishing its launching.
    >
    > Is there a systematic way to track down why? Thanks.

    You see any thing logged in the console log (or run log if launching
    with Xcode)?

    /Applicatoins/Utilities/Console.app

    -Shawn
  • Unfortunately, no. All I have is that the init and awakeFromNib
    methods do get called and exited. I even tried recreating the
    MainMenu.nib but the results are exactly the same.

    On Sep 18, 2007, at 8:31 PM, Shawn Erickson wrote:

    >
    > On Sep 18, 2007, at 5:05 PM, Daniel Child wrote:
    >
    >> As a follow-up to my previous query about why a nib might not
    >> launch, I stumbled across
    >>
    >> - (void)applicationDidFinishLaunching:(NSNotification *)notification
    >>
    >> and, by adding it to the controller, used that to determine that
    >> the application is not finishing its launching.
    >>
    >> Is there a systematic way to track down why? Thanks.
    >
    > You see any thing logged in the console log (or run log if
    > launching with Xcode)?
    >
    > /Applicatoins/Utilities/Console.app
    >
    > -Shawn
  • On Sep 18, 2007, at 5:05 PM, Daniel Child wrote:

    > As a follow-up to my previous query about why a nib might not launch

    Just FYI, this message should then have been a reply to your previous
    one.  I for one have no idea what the context of your previous query is.

    > I stumbled across
    >
    > - (void)applicationDidFinishLaunching:(NSNotification *)notification
    >
    > and, by adding it to the controller, used that to determine that the
    > application is not finishing its launching.

    Is your application controller (which is what I assume you mean by
    "the controller") actually the application's delegate?  The
    application will only send -applicationDidFinishLaunching: to its
    delegate, it won't be sent to arbitrary objects.

    Have you tried breaking on Objective-C exceptions in the debugger?
    Set symbolic breakpoints on the Foundation method -[NSException raise]
    and the Objective-C runtime function objc_exception_throw to break as
    soon as an exception is thrown.  If an exception is being thrown early
    in application startup, this will let you know.

      -- Chris
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today