Multiple windows : little bit confused
Multiple windows : little bit confused
- Subject: Multiple windows : little bit confused
- From: kubernan <email@hidden>
- Date: Sat, 4 Aug 2001 12:56:03 +0200
Hello all !
After reading omnigroup de dev. mailing list, i'm still confused with my
app.
I have two window in this application :
- the main window in which double clicking in a row of a table view
opens a new window.
Each window are in seperate .nib files.
The doubleClick method execute this code :
if (![NSBundle loadNibNamed:@"myNibFile" owner:self]) {
NSLog(@"Failed to load Document.nib");
[self release];
}
[window makeKeyAndOrderFront:self];
I don't know if its good but myNibFile appears but...but.. nothing
happens in the .m associated
(NSBeep(); in awaikFromNib doesn't work).
At this time, the corresponding controller in .h file was defined as a
subclass of NSWindowController.
I have buttons on the window but it appears i'm not able to specify the
target in IB defined in the .m file.
The target doesn't appear in IB.
If i defined the controlleras a sublass of NSWindowController in .h
file, the target appears but after double
click for launching the window i have this message : could not connect
MyAction to the Delegate...
I'm looking for simple sample of two windows app. (the Apple example
have two much code).
Or if you have idea on my prb...
Thx for your help