I have some drawers in my ASOBC project using Xcode 4.0.1, which open and close fine, what I am wanting to do is speed up the opening and closing process, could some one point me in the right direction on how to go about doing this please.
I think this is a universal set speed for all animations like drawers and sheets. I know you can change the default value with terminal commands and utilities like Onyx, but it will only affect one computer.
Other than creating your own custom NSView with an custom animation (because NSDrawer does not conform to NSAnimatablePropertyContainer), I don’t see how else it can be done.
If you don’t mind me asking, why do you want to speed up the drawer animation?
Browser: Safari 531.22.7
Operating System: Mac OS X (10.6)
thanks for the info, I am wanting to speed the opening and closing to try to match that of opening a window
which is pretty fast, the drawers always seem so sluggish, yet windows are really quick.
Just thought their would be a easy way, to code the speed.
If there isn’t a notification instead you could override the performClose: method. I don’t have much understanding of overriding, best ask shane, but I believe you would subclass NSWindow making your window an instance of your class and write in your class a new performClose: where you close sheets and wait till they’re gone.
You’re trying to fight the interface guidelines, which is often not easy to do. The two are deliberately designed the way they are – I presume the animation of drawers is to match the metaphor, and because they can be quite small, to make sure they are noticed. From the user’s perspective, the main thing is that your app responds quickly, and in both cases you should be seeing that.
thanks for your input guys, looks like this is heading towards the extremely to hard basket for me, I think ill go with the flooooooo and accept things the way they are.