Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Unify boolean flag naming confention, getter spacing, and property attribute naming #6

Merged
merged 1 commit into from
Jul 17, 2014

Conversation

toulouse
Copy link
Contributor

Summary:

  • Fixes Inconsistent boolean property naming #3
  • Ordering: atomicity, then [optional] readonly, then value semantics (retain/copy/assign)
  • Removed redundant readwrite
  • No spaces between "getter = name" ("getter=name" instead)
  • Property method overrides renamed as well
  • self.isBlah, while technically not entirely correct, still resolves to [self blah], so left alone (@kimon had advice on this sort of naming issue last summer), and largely inconsequential

Test Plan:

  • Compile and run

@secretiverhyme
Copy link
Contributor

Awesome, thanks! Can you update the tests as well? ⌘U indicates that ASDisplayNodeAppearanceTests and ASDisplayNodeTests now fail to compile.

@toulouse
Copy link
Contributor Author

Whoops! Will fix. Forgot about those.

…tribute naming

Summary:
* Fixes #3
* Ordering: atomicity, then [optional] readonly, then value semantics (retain/copy/assign)
* Removed redundant `readwrite`
* No spaces between "getter = name" ("getter=name" instead)
* Property method overrides renamed as well
* self.isBlah, while technically not entirely correct, still resolves to [self blah], so left alone (@kimon had advice on this sort of naming issue last summer), and largely inconsequential

Test Plan:
* Compile and run
@toulouse
Copy link
Contributor Author

Also, if anything tries to do KVO on or set value for the following, the property name to observe mayhave changed:

isSynchronous
isViewLoaded
isLayerBacked
isCropEnabled

Since observing is usually done by string rather than symbolically, these deserve a quick look.

secretiverhyme added a commit that referenced this pull request Jul 17, 2014
Unify boolean flag naming confention, getter spacing, and property attribute naming
@secretiverhyme secretiverhyme merged commit 986fa02 into facebookarchive:master Jul 17, 2014
@secretiverhyme secretiverhyme deleted the flagNaming branch July 17, 2014 20:58
@secretiverhyme
Copy link
Contributor

builds & tests — ✔︎
dependent project — ✔︎
KVO looks fine — ✔︎
r=me

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

Successfully merging this pull request may close these issues.

Inconsistent boolean property naming
2 participants