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
7
votes
1 answer

Using INotifyPropertyChanged view models with Cocoa/AppKit bindings

I know this is pretty esoteric but hoping someone has a solution for me. I have an application that started life as WPF, moved to UWP and now lives primarily as XF/MAUI and WinUI. I'm wanting to port this to macOS and essentially just replace the UI…
Sam
  • 4,219
  • 7
  • 52
  • 80
7
votes
1 answer

Open window using a controller with Xamarin Mac

I've got a status menu on a tray icon application with Xamarin Mac. There is no window shown by setting Application is agent (UIElement) to 1. A login window must only be shown after a menuItem is clicked. (which is connected using a action.) The…
Waaghals
  • 2,029
  • 16
  • 30
7
votes
4 answers

Is MonoMac deprecated?

The page for MonoMac seems to be abandoned. It seems to be last-updated a few years ago, because it says "Mountain Lion" is the "new" operating system. New Lion and Mountain Lion APIs for AppKit And MonoMac is under "Unsupported" in the Xamarin…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
6
votes
0 answers

Using C/C++ library in Visual Studio Mac solution (Xamarin.Mac app)?

Xamarin.Mac And C++ I am trying using C++ library (.a) in Visual Studio for Mac (a.k.a. Xamarin) I've found online some info on linking native libraries in Xamarin (https://developer.xamarin.com/guides/ios/advanced_topics/native_interop/) but it…
Nick
  • 1,248
  • 12
  • 18
6
votes
1 answer

type resolution with Splat library and Xamarin.Mac

I have an Xamarin.iOS project that uses the splat library https://github.com/paulcbetts/splat to make System.Drawing types available in portable class library. If a parent class uses (say) System.Drawing.RectangleF, then by using Splat, it works…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
6
votes
1 answer

Xamarin Forms ListView CachingStrategy

I have recently tested the CachingStrategy for a ListView in a Xamarin Forms App with 1000 items in the list. List items are being created from a data template of ViewCell. I Tried using RecycleElement option for CachingStrategy. When I did…
Haider
  • 1,488
  • 2
  • 15
  • 29
6
votes
1 answer

How to reverse NSObject.FromObject back to a regular C# type

What is the reverse of NSObject.FromObject, e.g., getting a regular C# object back out of an NSObject. Understandably, this could only work for simple types. Update. Let's say I even know the type - but not before runtime. I tried Convert.ChangeType…
tofutim
  • 22,664
  • 20
  • 87
  • 148
5
votes
3 answers

NSScrollView with a matching width DocumentView

First of all, I want to say that I've looked at a good number of other resources trying to accomplish this, but nothing I've looked at seems to help. For instance: Automatically grow document view of NSScrollView using auto layout? I have an…
Jyosua
  • 648
  • 1
  • 6
  • 18
5
votes
2 answers

Xamarin - How to get a screenshot and save it on disk using xamarin mac?

I'm trying to grab a screenshot and save it on disk using Xamarin and C# on Mac. I wrote the code below: public static void TakeScreenshotAndSaveToDisk(string path) { var fullScreenBounds = NSScreen.MainScreen.Frame; IntPtr ptr =…
BVintila
  • 153
  • 5
5
votes
1 answer

Compile OSX app on Windows with Xamarin

I have a Xamarin Mac app I've been handed to make some changes. I've got everything working correctly as far as Windows Visual Studio Xamarin connecting to Mac Xamarin -- the Mac ssh agent works and whatnot. However, how do I compile the app? When I…
Chris
  • 650
  • 7
  • 20
5
votes
0 answers

cocoa IKImageBrowserView memory management

I use IKImageBrowserView in my application, if I add many photos on it application stops working and in profiler I see allocated memory is too high.. I need to optimize it somehow . here is my BrowserItem : public class BrowseItem :…
5
votes
2 answers

Xamarin.mac Resources localization doesn't change by current culture

I am trying to use .resx files for localization in xamarin.mac Inside AppDelegate I changed current culture of the thread : System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo…
Nininea
  • 2,671
  • 6
  • 31
  • 57
5
votes
1 answer

Monodevelop + Linux and Android Xamarin developement

Is it possible to develop a portable Xamarin mobile (Android) application with MonoDevelop on Linux? I'm using Linux Mint, I have installed MonoDevelop with the guides MonoDevelop linux and MonoDevelop Ubuntu-Debian. After installing, I have…
Fabiano Tarlao
  • 3,024
  • 33
  • 40
5
votes
4 answers

HttpRequestBase.GetBufferedInputStream not found when doing a WebAPI 2 JSON Post

Created a MVC5 WebAPI2 project using Visual Studio Created a basic JSON POST Post arguments cause HttpRequestBase.GetBufferedInputStream not found failure Works on: Windows with visual studio Fails on: OSX Xamarin Gentoo Xamarin Test…
Fair
  • 431
  • 1
  • 5
  • 11
5
votes
2 answers

Xamarin.Mac URL Scheme

How do you setup and debug URL schemes with Xamarin.Mac? I added the following to my Info.plist: I then built an installer package and installed the app. But if I open mytest:// in a browser or run open mytest:// command line, neither launches my…
jonathanpeppers
  • 26,115
  • 21
  • 99
  • 182
1
2
3
38 39