Hello list, I've been unsuccessfully trying to use an animation proxy for an NSWindow instance using Python:
For example: ---- def fadeOut(self, window): window.animator().setAlphaValue_(0.0) ---- causes my application to crash. Bypassing the proxy, however works: ---- def fadeOut(self, window): window.setAlphaValue_(0.0) ---- Interestingly, if I invoke the setAlphaValue method on the proxy using the performSelector method, it works: ---- def fadeOut(self, window): windowProxy = window.animator() windowProxy.performSelector_('setAlphaValue:') ---- The above code will cause the window to animate a fade out to blank, which is expected because I'm not passing in any parameters and it is assuming an alpha value of nil or 0. (Note that I am aware of performSelector_withObject_, but it did not work as expected, probably because the input parameter is a double and not an NSObject). Question: Is all of this expected behaviour? If so, what is the best practice for calling methods on proxy objects like this in Python? Thanks very much in advance! Regards, Mani _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]