displaying a window?!?

R3LL1K

Registered
how can i display my window?

i created a subclass fo NSPannel and linked my class (AddWnd) with my window in IB

so my function for the button which will display the window:

#import "AddWnd.h"

- (IBAction)AddData:(id)sender
{
AddWnd* hWnd = [[NSWindow alloc] init];
[hWnd setLevel:NSModalPanelWindowLevel];
[hWnd display];
}

when i click on the button the window doesn't display

PS: sry for my bad english :)
 
For those who look at this thread in the future for the answer, he would have called [hWnd makeKeyAndOrderFront:self].

F-bacher
 
Back
Top