Post not yet marked as solved
Post marked as unsolved with 0 replies, 362 views
I need to use almost identical code within the observeValue function on two different occasions (one much later than the other), but, within the function, it needs to pass on a (string) value to another function which needs to perform a slightly different action depending upon the value of this parameter.
The observer is for the change of url, but the same url is used in both instances, so can't use this to distinguish between them.
It would appear the "context" parameter might be used to do this, but it requires an UnsafeMutableRawPointer and I'm unsure how to pass a String to this type. Is this the correct/best way of achieving this or should I use a different mechanism?
Thanks, Keith