Re: loading NSWindowController nib from bundle

2014-10-27 Thread Quincey Morris
On Oct 27, 2014, at 18:16 , Torsten Curdt wrote: > > I know - it smells horrible. It doesn’t just smell, it’s actually wrong. > My next thought was to just add > > - (id) initWithMyWindowNibPath:(NSString *)nibPath > { > return [super initWithWindowNibPath:nibPath owner:self];

Re: loading NSWindowController nib from bundle

2014-10-27 Thread Torsten Curdt
> > My first thought was that passing in "nil" as the owner would actually > default to "self" I really want - but that does not seem to be the case. > > > It’s documented as “cannot be nil”. > Yup - and it also barfs if it is :) Still it was my first thought and expectation. > On the next thoug

Re: loading NSWindowController nib from bundle

2014-10-27 Thread Quincey Morris
On Oct 27, 2014, at 15:10 , Torsten Curdt wrote: > > My first thought was that passing in "nil" as the owner would actually > default to "self" I really want - but that does not seem to be the case. It’s documented as “cannot be nil”. > On the next thought > >controller = [self alloc]; >

loading NSWindowController nib from bundle

2014-10-27 Thread Torsten Curdt
I am a little confused on how to load NSWindowController from a bundle other than the mainbundle. While this code works just fine controller = [[self alloc] initWithWindowNibName:@"TCAboutWindow"]; I now moved the the nib into it's own bundle inside the main bundle. Since I could not figure