• 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: nibless applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nibless applications


  • Subject: Re: nibless applications
  • From: Filip van der Meeren <email@hidden>
  • Date: Wed, 3 Sep 2008 09:41:55 +0200

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 (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

_______________________________________________

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


  • Follow-Ups:
    • Re: nibless applications
      • From: Jeff Johnson <email@hidden>
References: 
 >nibless applications (From: David Alter <email@hidden>)

  • Prev by Date: Re: Declaring multidimensional arrays in obj-c
  • Next by Date: Re: nibless applications
  • Previous by thread: nibless applications
  • Next by thread: Re: nibless applications
  • Index(es):
    • Date
    • Thread