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: 

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               0x0000000122308df2 -[ScreenSaverView 
_oneStep:] + 98
2                0x000000010baecb4e 
__NSFireDelayedPerform + 377
3            0x000000010da0bb94 
4            0x000000010da0b823 __CFRunLoopDoTimer + 
5            0x000000010da0b37a __CFRunLoopDoTimers 
+ 298
6            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 

There is no more info in the system.log.

Best regards, 


Cocoa-dev mailing list (

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)

Help/Unsubscribe/Update your Subscription:

This email sent to

Reply via email to