Objective-C/Cocoa noob here. I’d like to make the window color in a little Mac app I’m making white, instead of the default light grey color. What’s the proper way to do this?
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.
From the AppDelegate you can simply invoke the
windowpropertyotherwise from any point of you application you can call
keyWindowis the currently “on top” window, which is probably the only one if the application is simple. For more complicated scenarios where you need a different window you can usewhich will return an array of all the windows owned by the application.