Re: Converting an existing Mac project to use storyboard
Re: Converting an existing Mac project to use storyboard
- Subject: Re: Converting an existing Mac project to use storyboard
- From: Allison Newman <email@hidden>
- Date: Tue, 02 Sep 2014 12:11:18 +0000 (GMT)
I don't have a key called NSMainStoryBoardFile in the pulldown menu, but I do have a key called Main storyboard file name base (note: not the iphone / iPad version), and the value I put in for that key is 'Main', which matches the name of my storyboard file, which is called 'Main.storyboard'. I should mention that I'm running Xcode 6 Beta 6, which might explain the key name difference...
The storyboard has been added to the target, and I had found the IsInitialController checkbox when poking around in IB trying to fix this thing, so yes, I had already checked that as well, sorry, I forgot to mention it in the original post!
I did try copying from a template (that's how I found the IsInitialController checkbox!), but there's obviously a magic setting hidden somewhere that I can't find :(
On Sep 02, 2014, at 04:38 AM, Roland King <email@hidden> wrote:
> On 2 Sep 2014, at 6:33 pm, Allison Newman <email@hidden > wrote:
....
What key did you put it under in the info.plist file? It should be under ‘NSMainStoryBoardFile’ and have the name ‘Main’ (clever OS knows to add the .storyboard).
Are you copying the Main.storyboard during the Copy Bundle Resources phase? Just having it added to the target should do that, but check .. and you did add it to the target, right?
The Window Controller for the main window needs to have ‘Is Initial Controller’ checked in IB as well, does it?
One thing you can do is make a test project from a template then go look at that and see how it’s set up, then copy. Remember great artists steal.
_______________________________________________
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