Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xlformOptionObject validateData #708

Open
tommypeps opened this issue Jan 25, 2016 · 1 comment
Open

xlformOptionObject validateData #708

tommypeps opened this issue Jan 25, 2016 · 1 comment

Comments

@tommypeps
Copy link
Contributor

On class extend NSObject+XLFormAdditions.h
the function value data check vale of object

-(id)valueData
    if ([self conformsToProtocol:@protocol(XLFormOptionObject)]){
        return [(id<XLFormOptionObject>)self formValue];
    }
    return nil;

check the value data of object XLFormOptionObject must be:

    if ([self conformsToProtocol:@protocol(XLFormOptionObject)]){
        return (id<XLFormOptionObject>)self;
    }
    return nil;

according to XLFormOptionObject equal and hash.

@mats-claassen
Copy link
Member

Why not compare the formValue of the object in 'isEqual'?
The valueData is also used in httpParameters and we dont want to get the object there but the formValue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants