oleksii-demedetskyi / Parus

Parus is simple chain style auto-layout helper for objective-c.
MIT License
106 stars 4 forks source link

Extract holder #8

Closed oleksii-demedetskyi closed 11 years ago

oleksii-demedetskyi commented 11 years ago

Separated class for context holding and constraint production.

oleksii-demedetskyi commented 11 years ago

@xNekOIx Please look at this and say what you think.

oleksii-demedetskyi commented 11 years ago

We need to change NSParameterAssert to concrete Exception

Forsarion commented 11 years ago

@DAlOG should we create subclass of NSException or just use usual NSException?

oleksii-demedetskyi commented 11 years ago

@AndreyMoskvin main problem in NSParameterAssert, that asserts are not active with some build condition. So simple [NSException raise] will be ok. But also, we need to specify all incorrect states in tests, and check that in other case all correct to.