Re: Creating a Cocoa Window in code
Re: Creating a Cocoa Window in code
- Subject: Re: Creating a Cocoa Window in code
- From: "Felipe Monteiro de Carvalho" <email@hidden>
- Date: Fri, 18 Jan 2008 12:23:48 +0100
On Jan 18, 2008 12:23 PM, Matt Gough <email@hidden> wrote:
> You are not calling alloc, it should be
>
> id MainWindow = [[NSWindow alloc] initWithContentRect:
> MainWindowRect etc etc...
Thanks! Not it doesn't crash, but it exits right after starting. Is
there a method somewhere to enter a message loop to prevent imediate
exit?
Also, what shows the window? I can't find a show method, or something similar.
thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden