Filip,

All you have to do is create a menu? With all due respect, did you read my articles before your "bogus" judgment? Creating a proper main menu for the app is one of the main difficulties in going nibless.

-Jeff


On Sep 3, 2008, at 2:41 AM, Filip van der Meeren wrote:

Ok, I don't know where you have found that article because it is bogus!
You are perfectly able to create an application without Nibs...

Just create a new cocoaproject, delete the nibfile and replace your main with the following code:

int main(int argc, char *argv[])
{
        [NSApplication sharedApplication];
        [NSApp setDelegate:myDelegate];
        [NSApp run];
}

Et voila, you have your basic application, all you have to do before you get to "run" is to create a window or a menu so the user can actually do something.

Or you could just wait until the run method calls your delegate methods...


On 02 Sep 2008, at 22:46, David Alter wrote:

I have a situation where it would make a lot of sense to have a nibless application. I think this situation is unique and would suspect that very few people would need to do this. There is some information on how to do this. Lap Cat Software has some good information on this <http://lapcatsoftware.com/blog/2007/06/04/ working-without-a-nib-part-2-also-also-wik/>. The example does a few things that makes me question if this is the way to go. That brings me to my question.

Is there a supported way to make nibless applications?

If someone from apple wants to comment of the solution provide by Lap Cat Software I would be very interested.

thanks for the help.

-dave

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to