Re: loadNibNamed deprecated, but newer version crashes
Re: loadNibNamed deprecated, but newer version crashes
- Subject: Re: loadNibNamed deprecated, but newer version crashes
- From: Gabriel Zachmann <email@hidden>
- Date: Mon, 19 Sep 2016 11:02:03 +0200
Thanks a lot for your response.
When I replace this line
[NSBundle loadNibNamed: @"ConfigureSheet" owner: self];
by this:
NSBundle * bundle = [NSBundle bundleForClass:[self class]];
[bundle loadNibNamed: @"ConfigureSheet" owner: self topLevelObjects: nil];
then System preferences crashes with this stack trace:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000007fe17f0b260
0 libobjc.A.dylib 0x000000010c0434dd objc_msgSend + 29
1 com.apple.ScreenSaver 0x0000000122308df2 -[ScreenSaverView _oneStep:] + 98
2 com.apple.Foundation 0x000000010baecb4e __NSFireDelayedPerform + 377
3 com.apple.CoreFoundation 0x000000010da0bb94 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
4 com.apple.CoreFoundation 0x000000010da0b823 __CFRunLoopDoTimer + 1075
5 com.apple.CoreFoundation 0x000000010da0b37a __CFRunLoopDoTimers + 298
6 com.apple.CoreFoundation 0x000000010da02871 __CFRunLoopRun + 1841
So, it seems like the init function initWithFrame:isPreview: in my subclass of ScreenSaverView finishes fine,
only when ScreenSaverView tries to perform one animation step, it crashes.
I think, at this point, it has not yet called my code to perform an animation step.
There is no more info in the system.log.
Best regards,
Gabriel.
_______________________________________________
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