Questions tagged [xamarin.mac]

Xamarin.Mac is an open source library for building Cocoa applications on OSX using C# and .NET. It is based on top of the Mono framework.

Xamarin.Mac: an open source library for building Cocoa applications on OSX using C# and .NET.

You can dig into the source code and read the documentation.

584 questions
0
votes
1 answer

Launch Service with Parameters

I am implementing launch service on Xamarin.Mac, I am successful in launching my application via web browser. My question is: I want to pass some parameters along with the Launch Service, How can I do so in Xamarin.Mac? Please help out.
0
votes
1 answer

HttpUtility.ParseQueryString Mono 4.8 Xamarin Mac Upgrade Issue

I have an app I have been working on that was running fine. I upgraded to the latest Xamarin with mac support and now I get an error when I try to use HttpUtility.ParseQueryString. I have an App.config file and it is telling me that it can't parse…
user856232
  • 1,073
  • 2
  • 14
  • 40
0
votes
2 answers

Xamarin Mono 4.8 Upgrade App Won't run

I have a Xamarin.Mac application that I wrote. It has been working fine. I just upgraded Xamarin today and it upgraded mono to 4.8. Now when I try to run my app in the Xamarin IDE I get the following error: Unhandled Exception:…
user856232
  • 1,073
  • 2
  • 14
  • 40
0
votes
1 answer

Xamarin Mac - SIGSEGV

Sometimes I am getting an unknown SIGSEGV Error while executing my code. The Stacktrace can be found here. The Exception always occurs when expanding a View which is inside a StackView. NSAnimationContext.RunAnimation(ctx => { …
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
0
votes
1 answer

Xamarin Mac NSScrollView with dynamic content

I want to add a unknown count of Custom Views to a NSScrollView within a Xamarin Mac application, but I cannot find a way to do this. On iOS I would create a UIScrollView containing a UIView containing a UIStackView which will automatically layout…
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
0
votes
1 answer

Give write permission to preview app for application support folder

I open image with preview application programmatically , data is located in application support folder. NSWorkspace.SharedWorkspace.OpenFile (item.ImageUID, "Preview.app"); Is there any way to give write permission to preview app. (for example…
Nininea
  • 2,671
  • 6
  • 31
  • 57
0
votes
1 answer

Xamarin.Mac project crashes on NSApplication.Init

Can you please help me understand why this Xamarin.Mac application is crashing? I am trying to use the GUI library Xwt in Xamarin Studio on a Mac, but even the test project XamMacTest which comes with Xwt crashes. I determined that the crash happens…
Landsailor
  • 101
  • 1
0
votes
1 answer

Xamarin mac app got crashed & closing window

App got crashed when i try to pick item from collection view,can anyone help me with this crash log? i need to locate inside my source where is the problem!?
Mounika
  • 412
  • 2
  • 20
0
votes
0 answers

Notification Hub Rest API - Registration - Bad Request - Xamarin.Mac .NET 4..5 - C#

im trying to register my Mac APP to my Azure Notification Hub. I already can create a registration ID and now I just need to register. https://msdn.microsoft.com/de-de/library/azure/dn223265.aspx I get always a 400 Bad Request response. Not sure…
0
votes
1 answer

Unable to Resolve host name in Xamarin Mac

I am trying to Get IP Address of Current Machine in Xamarin.Mac. I am using this C# Code and it's working in Windows very well but for Xamarin.But on Mac it throws an System.Net.Sockets.SocketException . Here is the code I'm Using: public…
Naveed Zahoor
  • 13
  • 1
  • 8
0
votes
1 answer

Xamarin 6.1.5 on OS El Capitan

Hi I am beginner in C# coding and I just installed Xamarin Studio Community. With the 6.1.2 version I could go in the add-ins manager and look up for new add-ins. But since I updated to the 6.1.5 I got this error message when I go to the…
0
votes
1 answer

Xamarin.Mac - How to pass current credentials to REST endpoint

Unable to use the System.Net API to authenticate current user to a REST endpoint. Example below returns 401 unauthorized using (HttpClient client = new HttpClient()) { using (HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get,…
Paul
  • 1
  • 1
0
votes
1 answer

Unable to use DataContractJsonSerializer in Xamarin.Mac

I was using the following to convert my properties to JSON in windows and it is working very well but now I am trying to do the same in Xamarin on my Mac but it is unable to recognize DataContractJsonSerializer. Below is the code i was using on…
Naveed Zahoor
  • 13
  • 1
  • 8
0
votes
0 answers

How to style a NSButton?

I want to make my buttons to look nice & stylish through out of my application :) , i tried some ways but those are not perfect for ex : if i set background color to my button , its not showing effect when i click it :( . I like to set background…
Mounika
  • 412
  • 2
  • 20
0
votes
1 answer

Is there a version of Xamarin.Mac without the Opentk namespace

On Visual Studio mac the Xamarin.Mac 3.0.0.290 (provided by visual studio) has the OpenTK namespace in it which is causing me headaches! Is there a version of Xamarin.Mac that can replace this that doesn't have this namespace? I'm targeting .Net4.5.
andrew
  • 27
  • 6