• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a Cocoa Window in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating a Cocoa Window in code (From: "Felipe Monteiro de Carvalho" <email@hidden>)
 >Re: Creating a Cocoa Window in code (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: Creating a Cocoa Window in code
  • Next by Date: Re: Creating a Cocoa Window in code
  • Previous by thread: Re: Creating a Cocoa Window in code
  • Next by thread: Re: Creating a Cocoa Window in code
  • Index(es):
    • Date
    • Thread