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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to