You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This configuration has much better constraint support than base 3.6.2. But does not seem to have been well tested for modifying classes that have constraints.
A class's constraints instance variable includes a set of constraints for all instance variables and all inherited instance variables. If a constraint is not explicitly set, the constraint is set to Object. So the number of constraints = number of ivars.
The browser, however, only prints the constraints: part of the definition if the constraint is not object. So if you recompile a class definition, you have no way to know all the constraints you have.
But even if you did know, it doesn't matter if you are removing an instance variable, since _installConstraints applies the old class version's constraints to the new class, and errors since there are fewer ivars than constraints.
This issue recorded for tracking, but customer is OK with using _clearConstraints as a workaround.
This configuration has much better constraint support than base 3.6.2. But does not seem to have been well tested for modifying classes that have constraints.
A class's constraints instance variable includes a set of constraints for all instance variables and all inherited instance variables. If a constraint is not explicitly set, the constraint is set to Object. So the number of constraints = number of ivars.
The browser, however, only prints the constraints: part of the definition if the constraint is not object. So if you recompile a class definition, you have no way to know all the constraints you have.
But even if you did know, it doesn't matter if you are removing an instance variable, since _installConstraints applies the old class version's constraints to the new class, and errors since there are fewer ivars than constraints.
This issue recorded for tracking, but customer is OK with using _clearConstraints as a workaround.
My code to get classes with constraints:
The text was updated successfully, but these errors were encountered: