I have two nibs in my application, and was wondering if having one instance of the same app delegate in each one is ok
Share
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.
It won’t be the same object (unless the app delegate is the File’s Owner). Any object you drag into a NIB file will be instantiated if the NIB is loaded. Only the File’s Owner and First Responder reference existing objects outside the NIB. Since only one object can be your application delegate, your approach will not work.