• 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: Minimal cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Minimal cocoa application


  • Subject: RE: Minimal cocoa application
  • From: "Godwin, Mark R" <email@hidden>
  • Date: Thu, 8 Mar 2007 15:35:25 -0000
  • Thread-topic: Minimal cocoa application

Thanks for the responses.

I think I must have asked the wrong question. It appears I can do what I
was looking for easily enough from a Carbon app, as follows:

NSApplicationLoad();
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

NSRect r = {{0,0},{300,300}};
NSWindow *pWindow = [[NSWindow alloc] initWithContentRect: r styleMask:
... ];

[pWindow makeKeyAndOrderFront: nil];

WebView *pWebView = [[WebView alloc] initWithFrame: r frameName: nil
groupName: nil];
[pWindow setContentView: pWebView];
[[pWebView mainframe] loadRequest:... ]

[pool release];



I was kind of hoping to make the app "Plain" cocoa, rather than Cocoa in
Carbon. I was hoping there was some simple cocoa startup code that I
could wrap around this, but it appears that this is not the case.

Cheers,
Mark
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: Minimal cocoa application
      • From: j o a r <email@hidden>
References: 
 >Re: Minimal cocoa application (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Minimal cocoa application
  • Next by Date: Re: Bindings/NSUserDefaultsController issue
  • Previous by thread: Re: Minimal cocoa application
  • Next by thread: Re: Minimal cocoa application
  • Index(es):
    • Date
    • Thread