Re: loadNibNamed deprecated, but newer version crashes

2016-09-19 Thread Dave
Yeah, you need to either assign the Array to a strong property OR you need to extract what you want from the Array and store those items as a strong property. Cheers Dave > On 19 Sep 2016, at 11:19, Alastair Houghton > wrote: > > On 19 Sep 2016, at 10:02,

Re: loadNibNamed deprecated, but newer version crashes

2016-09-19 Thread Alastair Houghton
On 19 Sep 2016, at 10:02, Gabriel Zachmann 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]]; >

Re: loadNibNamed deprecated, but newer version crashes

2016-09-19 Thread Gabriel Zachmann
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

Re: loadNibNamed deprecated, but newer version crashes

2016-09-18 Thread Charles Srstka
What’s the crash? Is it an exception? If so, what’s the description that gets posted to the console? Charles > On Sep 18, 2016, at 6:35 PM, Gabriel Zachmann wrote: > > I would like to replace this line of code: > [NSBundle loadNibNamed: @"ConfigureSheet" owner:

loadNibNamed deprecated, but newer version crashes

2016-09-18 Thread Gabriel Zachmann
I would like to replace this line of code: [NSBundle loadNibNamed: @"ConfigureSheet" owner: self]; by the newer version loadNibNamed: owner:topLevelObjects:. This runs in a screensaver. The deprecated version (loadNibNamed:owner:) works. The new version causes a crash. Here are the