Re: OSX storyboard window instantiation -- Xcode 6.3.2
Re: OSX storyboard window instantiation -- Xcode 6.3.2
- Subject: Re: OSX storyboard window instantiation -- Xcode 6.3.2
- From: Marco S Hyman <email@hidden>
- Date: Thu, 28 May 2015 21:20:24 -0700
I wrote:
> Storyboard (<NSStoryboard: 0x610000004a60>) doesn't contain a controller with identifier ‘initial’
>
> I also tried “instantiateInitialController”. No errors written to the console but the returned value is nil.
>
> What am I doing wrong?
Perhaps nothing. I looked at the storyboard file outside of Xcode and
saw that the identifier was NOT what I’d set in Xcode. It was instead the
name of the storyboard file less the file extension. Changing the value
in Xcode didn’t seem to affect the file. Using the magic identifier and
changing showWindow to makeKeyAndOrderFront resolved my issue.
Is this an Xcode bug, a documentation bug, or a bug in my understanding?
Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden