Re: Showing a NSPanel

2010-12-02 Thread koko
Thanks for your reply. The reason it was exploding was an error in a class assigned to a control in the panel. It all works fine now as: About *about = [[[About alloc] init] autorelease]; BOOL ok = [NSBundle loadNibNamed:@About owner:about]; if(ok) {

Showing a NSPanel

2010-12-01 Thread koko
The code below explodes on the loadNibNamed call but I have done this many times ... where am I wrong? @interface About : NSPanel { } - (IBAction)about:(id)sender { About *aboutpanel = [[About alloc] init]; [aboutpanel retain]; BOOL ok = [NSBundle

Re: Showing a NSPanel

2010-12-01 Thread Nick Zitzmann
On Dec 1, 2010, at 4:43 PM, k...@highrolls.net wrote: The code below explodes on the loadNibNamed call but I have done this many times ... where am I wrong? I'd recommend you scrap what you're doing and try it again using an NSWindowController subclass, with that subclass as the nib's file

Re: Showing a NSPanel

2010-12-01 Thread Laurent Daudelin
On Dec 1, 2010, at 15:43, k...@highrolls.net wrote: The code below explodes on the loadNibNamed call but I have done this many times ... where am I wrong? @interface About : NSPanel { } - (IBAction)about:(id)sender { About *aboutpanel = [[About alloc] init];

Re: Showing a NSPanel

2010-12-01 Thread Graham Cox
On 02/12/2010, at 10:43 AM, k...@highrolls.net wrote: but I have done this many times ... where am I wrong? NSWindowController is what you need. Subclasses of NSPanel, NSWindow etc are extremely rare. Doing something 'many times' doesn't make it right if it isn't the right way to do it,