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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
