• 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: Creating the app menu from scratch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating the app menu from scratch


  • Subject: Re: Creating the app menu from scratch
  • From: "Jim Crafton" <email@hidden>
  • Date: Mon, 14 Jul 2008 14:13:14 -0400

> Actually, reading the docs for +loadNibNamed:owner:, I think it is even
> easier (but you'll want to test it).  The owner is used to determine where
> to look for the NIB.
>
> If you were to create a subclass of NSApplication that lives within the
> framework that has your generic MainMenu.nib and then set the application
> class of your application to that subclass, then the standard means of
> bringing up Cocoa -- i.e. the call to NSApplicationMain() -- should "just
> work".
>

Cool, I have some of this already in place, so now I know where to
build from there.

> That is, clients of your framework should be able to:
>
> - create a new Cocoa application project
>
> - delete MainMenu.nib
>
> - set the application class to your custom NSApplication subclass
>
> - link against your framework
>

The only difference is that by and large they'd be building a C++ app
- the framework is C++ with the Mac specific parts implemented in
ObjeciveC++ and Cocoa. So they wouldn't even need to delete the
MainMenu.nib, since it wouldn't exist. I have project templates to
create the skeleton project and properly link to my framework.


Thanks !!

Cheers

Jim
_______________________________________________

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

References: 
 >Creating the app menu from scratch (From: "Jim Crafton" <email@hidden>)
 >Re: Creating the app menu from scratch (From: "Michael Ash" <email@hidden>)
 >Re: Creating the app menu from scratch (From: "Jim Crafton" <email@hidden>)
 >Re: Creating the app menu from scratch (From: Bill Bumgarner <email@hidden>)
 >Re: Creating the app menu from scratch (From: "Jim Crafton" <email@hidden>)
 >Re: Creating the app menu from scratch (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Creating the app menu from scratch
  • Next by Date: Re: CALayer transform, setting the Y value of rotation causes side-effects
  • Previous by thread: Re: Creating the app menu from scratch
  • Next by thread: Custom NSCells
  • Index(es):
    • Date
    • Thread