On 19 Sep 2016, at 10:02, Gabriel Zachmann <z...@tu-clausthal.de> wrote:
> 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:
The problem is likely that you aren’t retaining all of the top level objects in
the nib file, and something you’re relying on is being disposed of. The
simplest fix for older code that was using the original -loadNibNamed:owner:
method is often just to add an NSArray member variable to your class to hold
the top level object references.
Cocoa-dev mailing list (Cocoafirstname.lastname@example.org)
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 arch...@mail-archive.com