Quartz Display Services replacement for deprecated function CGWaitForScreenRefreshRects - quartz-graphics

The method CGWaitForScreenRefreshRects is deprecated in Mac OS X v10.8.
The alternative method mentioned in class reference(CGRegisterScreenRefreshCallback) is also deprecated.
What should I use to get the screen updates in 10.8?

Look at CGDisplayStream.h. It is new set of APIs added to 10.8. Their is rare documentation on it though.

Related

Robot Framework - Use Listener to interrupt Execution

I'm currently implementing a way to manage execution of a test in robot framework using using tkinter and the builtin listeners.
I was able to make a Pause/Resume system relatively easily but I'm unable to make a Stop system.
In the RobotFramework UserGuide there is an example to insert keywords in test cases like this:
ROBOT_LISTENER_API_VERSION = 3
def start_test(test, result):
test.keywords.create(name='Log', args=['Keyword added by listener!'])
The issue is, that this is deprecated and doesn't work. I have the following error when trying to use this :
UserWarning: 'keywords' attribute is read-only and deprecated since Robot Framework 4.0. Use 'body', 'setup' or 'teardown' instead.
I don't know how to use Body setup or teardown to do what I want and I was unable to found any example similar to the deprecated one
Apparently I needed to ask the solution to find one by myself
So I just needed to make something like this :
test.setup.config(name="Fatal Error", args=["Force Quit"])
or
test.teardown.config(name="Fatal Error", args=["Force Quit"])

Fabric Js requestRenderAll() method vs renderAll() method

With the new 3.0.0 version of Fabric JS we have to apply requestRenderAll() in order to see the handles when one objects is active.
My question is:
does requestRenderAll() replace some kind renderAll() method. Are there any important differences between both methods. When we have to use each of them and do we have to use them together?
I now that Canvas.renderall is a sync operation and requestRenderAll() method is regarded as improvemnt. But do we still need renderAll() and if "yes", when. And also - is renderAll() going to be deprecated in near future?

Is the "super" keyword deprecated in Groovy?

I am using Groovy in Android and I suddenly saw that the super is deprecated? If it is, then how do you call the parent's method in contrast to the child's method?
The super keyword is not deprecated. It sounds like the method/constructor you are calling on the super class is deprecated.
Check the documentation/source code for the super class you are extending.

Semver: Can a function be removed without a major version bump?

When using semantic versioning, can a function be removed from a project without a major version bump if that function isn't intended to be part of the public API?
Ref: http://semver.org/
Major version increment comes when you make incompatible API changes. If your function do not affect the API, then you shouldn't go for it.
If the function was ever a part of the public API, intentionally or not, then removing it is a breaking change and thus a major version increment.

deprecated error in LUWIT

The method
CommandListener(ActionListener) from
the type Form is deprecated.
the above error started coming when I imported this.
import com.sun.lwuit.Form;
Form f = new Form("Hello, LWUIT!");
f.show();
f.setCommandListener(this); //error in this line.
Deprecation is a warning not an error and it usually includes an explanation of why it is happening. In this particular case the setCommandListener API was replaced with an add/removeCommandListener API to allow multiple listeners per form.
In the upcoming LWUIT version setCommandListener will no longer exist (just replace it with addCommandListener).

Resources