> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "NimbleKit" group.
> To post to this group, send email to nimb...@googlegroups.com
> To unsubscribe from this group, send email to nimblekit+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/nimblekit?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
I know I'm asking you a lot for help those past days but I've got to
release version 2 of Ma Pharmacie and I still have troubles.
First, as explained on the bugTracker, clearAnnotations() crashed if it is
called more than 1 time.
Second, I've created a class that deals with the protection system, and
that includes two function for me to get the results.
As I've seen on your samples, I've used
- (NSString*)methodResult
{
return self.tmValueToReturn;
}
to return values to the javascript (tmValueToReturn is an NSString).
I've got two functions :
- (void)detectIPhoneMode
{
//do something
//test protection
self.iPhoneMode = @"Something";
self.tmValueToReturn = self.iPhoneMode;
}
- (void)getDeviceSupport
{
if (self.iPhoneMode==@"something" || self.iPhoneMode==@"somethingelse"
|| self.iPhoneMode==@"somethingeither") self.tmValueToReturn = @"0";
else self.tmValueToReturn = @"1";
}
My problem here is that if I call those two functions one behind the
other, the second gets the value of the first :
NKRegisterClass("testModel");
var deviceUsed =
CallNKitAction('detectIPhoneMode?className=testModel');
var deviceSupport =
CallNKitAction('getDeviceSupport?className=testModel');
in this case, deviceUsed should contain something like "iPhone" and
deviceSupport should contain 0 or 1, but it contains iPhone.
What am I doing wrong ?
Thanks for your help :)
Bests,
Laurent.
Hi Alexander,
I know I'm asking you a lot for help those past days but I've got to
release version 2 of Ma Pharmacie and I still have troubles.
First, as explained on the bugTracker, clearAnnotations() crashed if it is
called more than 1 time.
Thanks for your help :)
Bests,
Laurent.
--
You received this message because you are subscribed to the Google Groups "NimbleKit" group.
To post to this group, send email to nimb...@googlegroups.com.
To unsubscribe from this group, send email to nimblekit+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nimblekit?hl=en.