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

Convert AddressBook framework to C++/WinRT #2474

Merged
merged 6 commits into from
Apr 11, 2017

Conversation

bviglietta
Copy link
Contributor

This change removes uses of projections from the AddressBook framework and replaces them with C++/WinRT.

@@ -41,6 +41,10 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\Frameworks\include\CppUtils.h" />
<ClInclude Include="$(MSBuildThisFileDirectory)..\..\..\tests\unittests\Tests.Shared\ByteUtils.h" />
Copy link
Contributor Author

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.

@bviglietta
Copy link
Contributor Author

@ms-jihua is added to the review. #Closed

@@ -172,22 +200,36 @@ - (id)init {
return self;
}

@dynamic contactStore;
Copy link

@DHowett-MSFT DHowett-MSFT Apr 10, 2017

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"

Copy link
Contributor Author

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?

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.

Copy link
Contributor Author

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.

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. :)

@bviglietta bviglietta merged commit 5f1c496 into microsoft:develop Apr 11, 2017
@bviglietta bviglietta deleted the AddrBookWinRT branch April 11, 2017 17:01
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.

4 participants