I am compiling old Apple example code for OS X Lion. Code is using functions EmptyRect and SectRect. Lion API diff tells me they are removed. What functions I’m supposed to use instead?
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 can set the rectangles manually, like this:
The thing is that these methods are deprecated because QuickDraw and other parts of Carbon may no longer exist in Lion. So you may run into more problems and more things missing as you try to build this example. I recommend finding a newer example that does the same thing or something similar.