Cocoa bootstrap
Cocoa bootstrap
- Subject: Cocoa bootstrap
- From: Yakov Zaytsev <email@hidden>
- Date: Thu, 10 May 2007 22:21:37 +0400
Hi,
I'm a Cocoa newcomer. I've just subscribed to Cocoa-dev and.. I want
to allow myself probably newbie question as a first post ;)
I want to open a window from a Carbon-ized application or from plain
main() like this [in order to plug in this code into "big" application]
XTensionController* cntl = [XTensionController new];
/*
[cntl initWithWindowNibName:@"Converter"];
[cntl showWindow:nil];
*/
[NSBundle loadNibNamed: @"Converter.nib" owner:cntl];
NSLog (@"window name:%@", [cntl window]);
The problem is that in any case I got nil...
Should I add some cocoa specific startup code? Yeah, besides bunch of
leaks which are shown in console log..
In general is it hard to add Cocoa to a Carbon-ized application? How
much set up code would be involved..
Thanks in advance for any pointers!..
---
Yakov Zaytsev
Envion Software http://www.envionsoftware.com
<Talk Small and Carry a Big Class Library>
_______________________________________________
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