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
0 answers

Right Click nsbuttoncell

I'm using Xamarin.Mac (well, I was, I'm using Visual Studio Mac now) and I'm trying to implement a right click event on a NSButtonCell (radio button). When I do that what I'm looking to do is to strike through the text in the label for the…
0
votes
2 answers

objective-c's __kindof in C#

I have no experience in objective c and am trying to translate a class written in objective c to c#. In the objective C class there is the "__kindof" keyword, such as - (NSArray<__kindof NSViewController *> *)popToViewController:(__kindof…
Xiangyu
  • 37
  • 6
0
votes
1 answer

Xamarin Mac - Resize Image

I am trying to resize an image in my Mac-App as I did before in an iOS-App. The problem is that NSImage does not contain all methods UIImage do. Here is the code I used for iOS public static UIImage MaxResizeImage(this UIImage sourceImage, float…
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
0
votes
1 answer

xamarin mac app vsts build definition

Has anyone tried to build Xamarin.Mac app using VSTS build definition? Any help greatly appreciated. Could someone tell me which build task to use to build the xamarin.mac project?
Jeeva
  • 162
  • 1
  • 9
0
votes
1 answer

Xamarin iOS & Mac - Compiler crashed with code: 1

Suddenly all my Xamarin Projects stopped building with the above mention compile error. I also tried reinstalling XS and VS for Mac but nothing helped. This is the Build-Output I get: CustomDialogController.designer.cs(16,22): warning CS0114:…
DirtyNative
  • 2,553
  • 2
  • 33
  • 58
0
votes
1 answer

Targeting Xamarin Mobile Mac using VS2017-style csproj

I like the new 'msbuild pack' nuget package generation in VS2017. I would like to use it to generate a library that uses Xamarin.Mac to be consumed by Xamarin Mobile Mac projects. I tried
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
2 answers

create a subclass of NSView to enable setTag()

I am using xamarin to develop a Mac app, and somewhere in my program I want to set the tag of a NSView. However, the tag property is readonly for NSView, so I'm searching for a way to create a subclass where tag is writable. Is there any suggestion…
Xiangyu
  • 37
  • 6
0
votes
1 answer

How to implement events for the controls which are programmatically added in the view?

I am working on cocoa application for OSX in Xamarin in which i am adding controls like buttons, Shapes etc programmatically to the Sub View. I know how to add click events during the design design time. Is there any way to implement the events…
James
  • 25
  • 1
  • 5
0
votes
1 answer

WebView for mac app in "visual studio for mac"

I make the app for mac. The IDE which I use is the "Visual studio for MAC". I need to use the component, which can display web pages in this app, but "Visual studio for MAC" have no elements at the tool panel such as webView. How can add component,…
0
votes
1 answer

How to get device width and height in Xamarin Cocoa apps

I am developing a cocoa application for OSX in Xamarin. I am facing issues with setting the 100% width of window/form so that it should occupied the full width of the screen. is there any way to detect the screen width so that i can set the width…
James
  • 25
  • 1
  • 5
0
votes
1 answer

Xamarin Mac OSX (os Sierra) local and push notifications in c#

I want to make an app that gives the user specific notifications at the specific time of day. My app is running Mac Cocoa/native Mac (not Xamarin Forms.) For example, if it is 3:00 and the mac is running but the program itself is not, and the user…
0
votes
2 answers

Xamarin or Xamarion.Forms for Windows, Mac, iOS and Android app

We are developing a slack like chat app using Xamarin. The platforms we are targeting are - iOS, Android, Windows, and Mac. Which is the recommended Xamarin flavor we should use? Xamarin Forms for iOS & Android and WPF for Windows & Xamarin.Mac for…
Kartik
  • 1,506
  • 2
  • 17
  • 28
0
votes
2 answers

How to use libgit2sharp with Xamarin.Mac?

I am trying to use the great library libgit2sharp on a Mac. Therefore I'm using Xamarin Studio to create a Mac app to read information from a Git repository. When I use the library within a normal mono executable (target Mono / .NET4.5, everything…
Waescher
  • 5,361
  • 3
  • 34
  • 51
0
votes
0 answers

How can I set horizontal scrolling If split view size is exceed my screen size in mac

I am adding split views dynamically to my view controller. At some point added split view size is exceed the screen size but con't get any scrolling. I am adding scroll view to my view controller but con't get it. Please suggest any idea. Thanks in…
Deepak
  • 545
  • 1
  • 12
  • 36
0
votes
1 answer

Where is NSVoiceLocaleIdentifier on Xamarin.Mac?

I am aware that it is probably grouped with some other similar entities into some enum. But searching Google, searching assemblies returned no answers. So, where is NSVoiceLocaleIdentifier on Xamarin.Mac?
Ivan Ičin
  • 9,672
  • 5
  • 36
  • 57