I’m hiding a subview from a CustomView element with the following code:
[[[theViewcont subviews] objectAtIndex:0] setHidden:TRUE]
how can I add a fade animation when hiding this NSView?
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.
Found the solution HERE CocoaDev:CoreAnimation
so when you have something like this to hide your subview:
to animate that action you just should so the following addition:
so there you have the right way to ‘fade out’ a subview in Cocoa.