• 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
Occasional NSInternalInconsistencyException - could not load nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Occasional NSInternalInconsistencyException - could not load nib


  • Subject: Occasional NSInternalInconsistencyException - could not load nib
  • From: Jonathan Mitchell <email@hidden>
  • Date: Fri, 07 Aug 2015 15:04:19 +0100

Occasionally I get crash reports like so:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[TSStackMenuItem loadView] could not load the "TSStackMenuItem_Image_Info" nib.’

They are very infrequent and don’t occur in testing.
I doubt that the nibs are actually missing from the bundle as the problem report rate would be much higher.

I now have two reported instances of this in two separate NSViewController subclasses.

Looking at these the only oddity that they seem to have in common is that I have inadvertently included calls to -view (which causes nib loading) during -initWithNibName:bundle:.
This is something I generally take pains to avoid.

Has anyone else encountered something similar?
The infrequency of the execution makes it hard to confirm my suggested fix (which is to not call -view during -init).

Thanks

Jonathan












_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Prev by Date: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Next by Date: Re: Occasional NSInternalInconsistencyException - could not load nib
  • Previous by thread: Re: How to implement NSSplitViewDelegate methods in an NSSplitViewController subclass
  • Next by thread: Re: Occasional NSInternalInconsistencyException - could not load nib
  • Index(es):
    • Date
    • Thread