Note that there are some explanatory texts on larger screens.

plurals
  1. POMonotouch binding
    primarykey
    data
    text
    <p>I'm trying to bind BugSense to Monotouch. But I have some problems, and now I will hear if someone here will check my bindings?</p> <p>The BugSense Header look like this:</p> <pre><code>#define BUGSENSE_LOG(__EXCEPTION, __TAG) [BugSenseCrashController logException:__EXCEPTION withTag:__TAG] OBJC_EXPORT @interface BugSenseCrashController : NSObject &lt;UIAlertViewDelegate&gt; + (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey; + (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey userDictionary:(NSDictionary *)userDictionary; + (BugSenseCrashController *) sharedInstanceWithBugSenseAPIKey:(NSString *)APIKey userDictionary:(NSDictionary *)userDictionary sendImmediately:(BOOL)immediately; + (BOOL) logException:(NSException *)exception withTag:(NSString *)tag; @end </code></pre> <p>I have then added an binding projekt and in my ApiDefinition.cs wrote:</p> <pre><code>[BaseType (typeof (NSObject))] interface BugSenseCrashController { [Static] [Export ("sharedInstanceWithBugSenseAPIKey:")] BugSenseCrashController SharedInstanceWithBugSenseAPIKey(String APIKey); [Static] [Export ("sharedInstanceWithBugSenseAPIKey:userDictionary:")] BugSenseCrashController SharedInstanceWithBugSenseAPIKey(String APIKey, [NullAllowed] NSDictionary userDictionary); [Static] [Export ("sharedInstanceWithBugSenseAPIKey:userDictionary:sendImmediately:")] BugSenseCrashController SharedInstanceWithBugSenseAPIKey(string APIKey, [NullAllowed] NSDictionary userDictionary, bool immediately); [Static] [Export ("sharedInstance")] BugSenseCrashController SharedInstance(); [Static] [Export ("logException:withTag:")] bool LogException (NSException exception, string tag); } </code></pre> <p>My problem is the "UIAlertViewDelegate" in the Header. I can’t do a “[BaseType (typeof (NSObject))]” in Monotouch.</p> <p>Anyone how can help?</p> <p>The problem is to bind BugSense to Monotouch. I created a Monotouch binding library, took the binary file from BugSenseiOS.Framework, named it bugsense.a and added it to the binding project. But it dosn't work.</p> <p>My "LinkWith":</p> <pre><code>[assembly: LinkWith ("libBugSense-iOS.a", LinkTarget.ArmV6 | LinkTarget.Thumb | LinkTarget.Simulator, ForceLoad = true, Frameworks="SystemConfiguration", LinkerFlags = "-lz")] </code></pre> <p>BugSense need SystemConfiguration.framework and libz.dylib.</p> <p>Link to BugSense <a href="http://www.bugsense.com/docs/ios" rel="nofollow">http://www.bugsense.com/docs/ios</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload