Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17119

Can __Dictionary only hold one object?

$
0
0

@matthewlehew wrote:

I'm trying to implement Soomla profile and store with special config builders, but it looks like using setObject erases the current content of a __Dictionary.

For example, these lines are in the App Delegate:

 __Dictionary *storeParams = __Dictionary::create();
    storeParams->setObject(__Bool::create(true), "SSV");
    storeParams->setObject(__Bool::create(true), "verifyOnServerFailure");

When I examine storeParams after this using a breakpoint, it only holds the SSV value.

Later on in the AppDelegate, the following:

__Dictionary *profileParams = __Dictionary::create();

soomla::CCSoomlaProfileConfigBuilder *profileConfig = soomla::CCSoomlaProfileConfigBuilder::create();
profileConfig->addSocialProviderConfiguration(soomla::CCSoomlaFacebookConfigBuilder::create()->setPermissions("public_profile"));
profileConfig->addSocialProviderConfiguration(soomla::CCSoomlaFacebookConfigBuilder::create()->enableAutoLogin(true));
profileParams = profileConfig->build();

Again, using a breakpoint, I see that instead of the permissions and autologin, the Dictionary only has the autologin:

Is there something wrong in this implementation? If so, how does one correctly add keys to a __Dictionary?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17119

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>