NSPanel newbie init question
NSPanel newbie init question
- Subject: NSPanel newbie init question
- From: Luc Vandal <email@hidden>
- Date: Mon, 25 Apr 2005 20:29:35 -0400
Hi,
currently my NSPanels are initialized automatically since they are IBOutlets. I don't know how to create the panel on the fly. I've tried this but it only shows a small, blank panel:
MyPanel* wnd = [[MyPanel alloc] init];
//Run modal loop
NSModalSession nDlgBrowseSession = [NSApp beginModalSessionForWindow: wnd];
int nRes = 0;
[NSApp runModalSession:nDlgBrowseSession];
for (;;)
{
nRes = [NSApp runModalSession:nDlgBrowseSession];
if ( nRes != NSRunContinuesResponse)
break;
}
Thanks!
Luc _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden