-
Notifications
You must be signed in to change notification settings - Fork 811
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
Convert AddressBook framework to C++/WinRT #2474
Conversation
@@ -41,6 +41,10 @@ | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\Frameworks\include\CppUtils.h" /> | |||
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\unittests\Tests.Shared\ByteUtils.h" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[](start = 4, length = 100)
This change is accidental. I'll remove it.
@ms-jihua is added to the review. #Closed |
@@ -172,22 +200,36 @@ - (id)init { | |||
return self; | |||
} | |||
|
|||
@dynamic contactStore; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this if you're implementing it directly under it. Also, @dynamic
isn't for manually-implemented properties; it's more for "these will exist at runtime, compiler, I promise"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I need @dynamic to suppress auto-generation of the field backing the property, don't I?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. It looks like the goal posts keep moving on what/when autosynthesis is engaged. Github does not have an emoticon that is glowering quite enough for me to express myself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be happy enough to let autosynthesis do its thing, except that in this case I want the property and the synthesized field to have different types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, you're right to use @dynamic
here. :)
This change removes uses of projections from the AddressBook framework and replaces them with C++/WinRT.