Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 26, 2012, at 18:10 , Jeff Johnson wrote: > Is your app distributed as a zip file? > > I had a similar bizarre issue with NSBundle a number of months ago, and it > turned out that the problem occurred when the app was unzipped using The > Unarchiver. Unzipping with the built-in Archive

Re: NSWindowController and nib in framework

2012-09-26 Thread Jeff Johnson
On Sep 26, 2012, at 12:51 PM, Quincey Morris wrote: > On Sep 26, 2012, at 10:08 , Kyle Sluder wrote: > >> Can you log +[NSBundle allBundles] and/or use Instruments to see what file >> access Foundation is performing and what responses it's getting back? > > The difficulty is that this exceptio

Re: NSWindowController and nib in framework

2012-09-26 Thread Mike Abdullah
On 26 Sep 2012, at 17:37, Quincey Morris wrote: > On Sep 25, 2012, at 22:37 , Graham Cox wrote: > >> Is the app sandboxed? >> >> I ask because I've had reports of this same error from the odd user but have >> been unable to reproduce it so far. It's ONLY happening since we sandboxed >> tho

Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 26, 2012, at 10:08 , Kyle Sluder wrote: > Can you log +[NSBundle allBundles] and/or use Instruments to see what file > access Foundation is performing and what responses it's getting back? The difficulty is that this exception has never happened to me during development. By chance (mayb

Re: NSWindowController and nib in framework

2012-09-26 Thread Kyle Sluder
On Sep 26, 2012, at 9:37 AM, Quincey Morris wrote: > > It's as if there's a short asynchronous step in finding bundles, which leaves > a small timing window for failure that depends on the code order. I dunno. That would be really weird and unfortunate. Can you log +[NSBundle allBundles] and

Re: NSWindowController and nib in framework

2012-09-26 Thread Quincey Morris
On Sep 25, 2012, at 22:37 , Graham Cox wrote: > Is the app sandboxed? > > I ask because I've had reports of this same error from the odd user but have > been unable to reproduce it so far. It's ONLY happening since we sandboxed > though. No, the app has been around for a while and isn't sandb

Re: NSWindowController and nib in framework

2012-09-25 Thread Graham Cox
On 26/09/2012, at 12:35 PM, Quincey Morris wrote: > Anyone have an idea what's going on here, and what I should really do to > avoid/fix the problem? Is the app sandboxed? I ask because I've had reports of this same error from the odd user but have been unable to reproduce it so far. It's

NSWindowController and nib in framework

2012-09-25 Thread Quincey Morris
Here's an except of some code in a window controller: > - (id) init { > self = [super initWithWindowNibName: @"MyWindow"]; > … > return self; > } > > + (MyWinController*) myWinController { > return [[MyWinController alloc] init]; > } The key point here is that the MyWinCo