For the time being I'm dealing with two separate windows(one is a panel) in Xcode3.
I have one button on the panel window that sends text to a text field on window one. I would like to have the panel close and a new panel open when I push the button, while sending text still.
My controller.h file I have:
I named the file Domain01 in IB under Identity tab on the Name field not the Class one or anywhere else
For my controller.m file i have:
The button is sending the text just fine but it's not closing the window. When I build I get two warning (yellow color) that NSPanel may bot respond to '-Close'.
Anybody have any suggestion on how to fix or do this another way?
I have one button on the panel window that sends text to a text field on window one. I would like to have the panel close and a new panel open when I push the button, while sending text still.
My controller.h file I have:
Code:
#import <Cocoa/Cocoa.h>
@interface Domaintest : NSObject {
IBOutlet id display;
IBOutlet NSPanel* Domain01;
}
- (IBAction)click:(id)sender;
@end
For my controller.m file i have:
Code:
#import "Domaintest.h"
@implementation Domaintest
- (IBAction)click:(id)sender {
[display setStringValue:@"Domain Test"];
[Domain01 Close];
}
@end
The button is sending the text just fine but it's not closing the window. When I build I get two warning (yellow color) that NSPanel may bot respond to '-Close'.
Anybody have any suggestion on how to fix or do this another way?