Skip to content

Convert all private ivars of PFUser to properties. #726

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

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

nlutsenko
Copy link
Contributor

Also added generic types to few of them.
Please note - authData needs id for object type, since we are using NSNull for it in few places.

This earmarks the user as being an "identity" user.
This will make saves write through to the currentUser singleton and disk object
*/
@property (nonatomic, assign, getter=isCurrent, setter=setIsCurrent:) BOOL current;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because PFUser could be subclassed, we should try to pick property names that are less likely to conflict (remember state, anyone?). I fear that lazy and current may already be in use by some applications, and I'd hate to cause incompatibilities for existing code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Let me use the same hack then as we used for '_state' :P

@richardjrossiii
Copy link
Contributor

I can't wait for swift...

nlutsenko added a commit that referenced this pull request Jan 5, 2016
Convert all private ivars of PFUser to properties.
@nlutsenko nlutsenko merged commit 749a46f into master Jan 5, 2016
@nlutsenko nlutsenko deleted the nlutsenko.properties.user branch January 5, 2016 23:16
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

Successfully merging this pull request may close these issues.

3 participants