nsviewanimation

Cocoa: NSView Animation

一个人想着一个人 提交于 2019-11-28 18:40:55
This is as simple as can be so I can't for the life of me find what's wrong, I looked through the documentation as a guide but it still didn't work. I have a view inside a larger view. An IBAction is supposed to fade out the inner view... that's it. Here's what I've got: NSViewAnimation *theAnim; NSMutableDictionary *viewDict; // Create the attributes dictionary for the view. viewDict = [NSMutableDictionary dictionaryWithCapacity:2]; // Set the target object to be the view. [viewDict setObject:_innerView forKey:NSViewAnimationTargetKey]; // Set this view to fade out [viewDict setObject

Cocoa: NSView Animation

岁酱吖の 提交于 2019-11-27 11:35:35
问题 This is as simple as can be so I can't for the life of me find what's wrong, I looked through the documentation as a guide but it still didn't work. I have a view inside a larger view. An IBAction is supposed to fade out the inner view... that's it. Here's what I've got: NSViewAnimation *theAnim; NSMutableDictionary *viewDict; // Create the attributes dictionary for the view. viewDict = [NSMutableDictionary dictionaryWithCapacity:2]; // Set the target object to be the view. [viewDict