RE: Minimal cocoa application
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