I’m building a framework in Xcode, and I need to display a window when a function is called. How do I get my framework to display a window that I build in Interface Builder? Step by step instructions would be greatly appreciated!
Thanks,
Chetan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d call it like this:
Where Foo is the name of the nib file, and
MyWindowControlleris a subclass of NSWindowController that you set to be the owner of the nib file.In this case, it’s important to subclass NSWindowController because it will automatically search for the nib file within the bundle that the class lives in.