I’m messing around with Xcode and Interface Builder. I want to make a timer or clock type app. What type of object should the numbers be? Just a ‘Label’?
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.
You could use a ‘Label’ (which is a modified
NSTextField), or you could use an non-editableNSTextFieldor even aNSViewwith a custom drawing method.If you’re still learning, I suggest you use a Label and go from there.
When linking to your
AppDelegate(or whatever object you’re using), remember to create anIBOutleton your property declaration so you can link your label, like so:And setup the clock value using the
setStringValue:method: