• 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
Converting an existing Mac project to use storyboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting an existing Mac project to use storyboard


  • Subject: Converting an existing Mac project to use storyboard
  • From: Allison Newman <email@hidden>
  • Date: Tue, 02 Sep 2014 12:33:21 +0200

I’m trying to convert an existing project over to using storyboards on Yosemite, but I can’t get my main storyboard to load.

What I’ve tried:
Checking Apple documentation. The Apple documentation for storyboards on the Mac is close to non-existant at the moment, or at least I haven’t been able to find any.
Googling.  This turned up the suggestion that I set the Main storyboard based file name in my application’s info.plist.  This was a suggestion coming from the world of iOS, but I tried anyhow, creating a storyboard called ‘Main.storyboard', and setting the base name in my info.plist to ‘Main’.  Although this doesn’t break the project, when the application is run, the existing MainMenu.xib is loaded at startup.
So then I tried removing the Main xib file base name property from my info.plist.  Once this is done, the application runs, but nothing is shown - there are no menus available except for the application menu, which is empty if you try clicking on it. No window is shown.  The application can only be quit by stopping it in Xcode. applicationDidFinishLaunching isn’t called on my app delegate.


Of note, if I leave the Main xib base file name property in place, but change the value to a non-existant xib file, the application quits immediately on launch.  It’s only if this property is completely removed from the plist that I get the application launched, but without an interface.

So, I’m a bit stuck.  Can anyone help?

Allison Newman
_______________________________________________

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: Converting an existing Mac project to use storyboard
      • From: Roland King <email@hidden>
  • Prev by Date: Re: How to Validate CoreData attribute value for uniqueness
  • Next by Date: Re: Converting an existing Mac project to use storyboard
  • Previous by thread: Re: Compositing grid over custom view
  • Next by thread: Re: Converting an existing Mac project to use storyboard
  • Index(es):
    • Date
    • Thread