Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Browsing all 1429 articles
Browse latest View live

Getting domain Name in xamarin.mac

hi, i am not able to fetch the domain name in xamarin as i would in windows. please help. i tried the below options with no luck: var domainname = new System.Text.StringBuilder(256);...

View Article


How to resolve 'Could not load file or assembly ...

Hi This question seem to pop often in the forum without any relevant answer. (at least I didn't find any to solve my problem) I had a working mac app with legacy target + framework 4.7 libraries. Now...

View Article


Image may be NSFW.
Clik here to view.

Pkcs11Interop Xamarin.Mac crash

Hi. I'm trying to create a Xamarin.Mac application using the Pkcs11Interop library. First I created the Cocoa app then created .NetStandart lib and imported the NuGet package Pkcs11Interop there. But...

View Article

Image may be NSFW.
Clik here to view.

Pkcs11Interop in Xamarin

Hello, this is my first try with Xamarin, I'm trying to ma use the "Pkcs11Interop" library with an example code (code at the end). But i can't figure how to make it work because it gives me these two...

View Article

Image may be NSFW.
Clik here to view.

Linker command failed with exit code 1 (use -v for more details)

Hi I add .NetStandart lib project in my default Xamarin.Mac solutuion. Then i add Pkcs11Interop nuget package to .NetStandart lib. the discussion about:...

View Article


Casting a Task> to an NSMutableArray

I'm new to Mac coding and am creating a MacOS Cocoa App and PCL model project, using SQLite-net-pcl. I've implemented KVC but am now facing the challenge of getting an NSMutableArray for binding to the...

View Article

Open and Close Window Programmatically Xamarin.Mac

Hi. I think this is a simple question, but I have not found the answer to it. How can I open other windows of my application from the ViewController code? How can I close the current window from the...

View Article

Image may be NSFW.
Clik here to view.

any help plz to install VS on Mac ?!

about 4 days now trying to solve it plz I need it urgent every time I got that message: **Initial task interrupted by exception Message: Access to the path "/Users/Nemo/.config/xbuild" is denied....

View Article


Invalid IL Code

Hi All, What would cause me to get exceptions like this? Invalid IL code in (wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,MC.Clio.TemporaryDocumentStorage):...

View Article


I'm getting an error when trying to run a blank android app on Visual Studio...

The error and the warning I get are : Failed to get the java SDK version.Found java version 9.0.4 "javac"exited with code 2 .(MSB6006) I hava Java 8 SDK installed

View Article

How do I add an app icon to the home screen on install?

I created a macOs app, but when i install my generated .pkg file I can not choose to have the application icon appear on the desktop. And my application also does not fit in the Application folder How...

View Article

Image may be NSFW.
Clik here to view.

Any CPU ?

In Visual Studio for Mac I can choose these Platform targets: What in meant by "Any CPU" ? (Do I get an app compiled for x86, x64 or Itanium ?) Best Eigil

View Article

Xamarin.Mac signal handling

Hi, I'd like to manage Signals, so the application does not just crash and leave users in the dark. I've been looking at PLCrashReporter which seems to do what I'd want, with one issue. As pointed...

View Article


How to Intercept MouseDown() on NSText

I'm running into a problem trying to intercept MouseDown() events for NSTextField. I've created a custom text field that extends NSTextField, and the first MouseDown() call gets intercepted correctly,...

View Article

2 different app icons and I can´t figure out how to change it

Hello everyone, I have a problem with the icons on a mac monogame app. If I do everything that´s listed in the guide(https://developer.xamarin.com/guides/mac/deployment,_testing,_and_metrics/app-icon/)...

View Article


Objective-c code to c# ( using system libraries)

Hey there! I am in a problem that I can not find a solution ... I'm porting objective-c to c# code to achieve a feature on my WKWebview . This feature requires to call to system libraries This is the...

View Article

Objective C binding

I created a project that need to bind one third party library with my Xamarin Mac application. I used objective sharpie for creating ApiDefinitions and StructsAndEnums. But when i add .a using native...

View Article


Image may be NSFW.
Clik here to view.

Getting System.InvalidCastException while loading View from a xib file

I have a xib file - LoaderView.xib and associated class LoaderView.cs which contains a view for showing loading text. When I try to load it in the main ViewController as - public override void...

View Article

Unsubscribing from NSWorkspace.Notifications events

I can subscribe to NSWorkspace.Notifications like so: _processStartedToken = NSWorkspace.Notifications.ObserveDidLaunchApplication((sender, e) => { if (_processName ==...

View Article

how to initiate gui to user from root process in Xamarin.mac

if there a way to launch process with with gui from root process without asking for any credentials any help would be appreciated. please reply soon. thank you.

View Article
Browsing all 1429 articles
Browse latest View live