Getting started on Mac

2 posts, 0 answers
  1. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 19 Jan 2012 Link to this post

    Your api documentation page doesn't appear to list Mac. I want to run a little test app to check out your stuff. I was able to get samples running on competitor platforms quite easily, yours, not so much.
  2. Guest
    Guest avatar
    506 posts
    Member since:
    Feb 2012

    Posted 19 Jan 2012 Link to this post

    Hi Skelly, (Did you really post your question Jan 12? It hasn't appeared here until now. If it's been stuck in our system then I apologize) You are completely right, the documentation for our newest platforms, iOS and Mac OS X, is not yet online. We have strived to make the API as uniform across platforms as possible so the documentation for eg .NET should be able to help you a long way with respect to functionality. But of course, there are some platform-specific issues, such as memory management (when to send a release-message to the objects involved, etc). There also is no MacOS-example online, but I will share some sample code with you here. Hopefully this snippet will help you get started. You're always welcome to write again, and we're certainly working on getting our iOS/MacOS offering up to the same level as the other platforms. It's definitely not that they're not important to us, far from it - users has simply been requesting the release of those libs so we decided to release them even though the doc and sample code was not completely ready yet. best regards, Richard Flamsholt, EQATEC ------------------- NSString *productId = @"xxxxxxxxxxxxxxxxx"; // your product id NSString *version = @"1.2.3.4"; id mon; // // AnalyticsMonitor feature testing // // Sunny-day test of api mon = [Eqatec_AnalyticsMonitorFactory create:productId withVersion:version]; [mon start]; [mon trackFeature:@"AutoTest.TrackFeature"]; [mon trackFeatureStart:@"AutoTest.TrackFeatureTiming"]; sleep(1); [mon trackFeatureStop:@"AutoTest.TrackFeatureTiming"]; [mon trackFeatureStart:@"AutoTest.TrackFeatureTiming"]; sleep(1); [mon trackFeatureCancel:@"AutoTest.TrackFeatureTiming"]; [mon trackFeatureValue:@"AutoTest.TrackFeatureValue" withValue:10]; [mon sendLogMessage:@"message for sendLogMessage"]; [mon sendLogFormatMessage:@"%s for %s", "message", @"sendLogFormatMessage"]; va_start(varg, format); [mon sendLogFormatVarg:format withArgs:varg]; va_end(varg); [mon sendLogMessageData:@"message for sendLogMessageData" withData:[@"hello world" dataUsingEncoding:NSUTF8StringEncoding] andMimeType:@"text/plain"]; [mon forceSync]; [mon setInstallationInfo:@"123456789"]; NSDictionary *propertyDictionary = [NSDictionary dictionaryWithObjectsAndKeys: @"k?dp?l?g", @"K?DP?L?G", @"", @"empty", nil]; [mon setInstallationInfoAndProperties:@"123456789" andProperties:propertyDictionary]; id cap = [mon capabilities]; [cap maxLengthOfLogMessage]; [cap maxLengthOfExceptionContextMessage]; [cap maxAllowedBandwidthUsagePerDayInKB]; [cap maxLengthOfFeatureName]; [cap maxNumberOfInstallationProperties]; [cap maxKeySizeOfInstallationPropertyKey]; [cap maxLogMessageLength]; [cap maxLogFileMimeTypeLength]; [cap maxLogFileDataSizeInKB]; [cap maxLogMessageLength]; [cap maxStorageSizeInKB]; [cap maxInstallationIDSize]; [mon stop]; [Eqatec_AnalyticsMonitorFactory release:mon]; best regards, Richard Flamsholt EQATEC Team
Back to Top