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

stringValue does not return string when using Swift (not true, my mistake) #24

Closed
tkrajacic opened this issue Nov 5, 2014 · 0 comments

Comments

@tkrajacic
Copy link

I have tested using Ono with Swift, and there seems to be a problem with getting the stringValue of elements. I have created a minimal example here to try:

https://github.com/tkrajacic/OnoTest.git

Calling stringValue on an element produces (Function) in Swift.

Could it be that stringValue has a namespace problem in swift?
Adding a breakpoint to my test project directly inside its implementation shows that it doesn't get called even!

In another project I use it with Alamofire to parse XML from a server and it produces nil
The function stringValue does get called there, returns the correct value, but that value somehow ends up nil after the call anyway... (No idea how that happens)

Scratch that, I'm an idiot. Of course stringValue is a function in Swift and needs to be called stringValue()

@tkrajacic tkrajacic changed the title stringValue does not return string when using Swift ~~stringValue does not return string when using Swift~~ Nov 5, 2014
@tkrajacic tkrajacic changed the title ~~stringValue does not return string when using Swift~~ stringValue does not return string when using Swift (not true, my mistake) Nov 5, 2014
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

No branches or pull requests

1 participant