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.

1
vote
0answers
30 views

Xamarin.Mac app crashing when launched through finder- Works when launched via VS or Terminal

I've been porting a windows app to MacOS using Xamarin.Mac and so far it's been going very well. I finished the initial version and built a release version, then tried to run it outside of Visual ...
-1
votes
0answers
8 views

Maximise NSWindows / NSView

In Mac OSX application I have a NSView that contains a WebView. When the view is maximised there is a big black area at the bottom of the Webview. I tried to look at different events to get the size ...
0
votes
0answers
10 views

Install app from PKG file is not visible in Application

I have mac project in Xamarin.Forms and I had created .pkg file in release mode (set the provisioning profile for code sign and product sign properly) but when I am install application from created ...
0
votes
0answers
41 views

Run a Xamarin.Forms macOS app from Windows Visual Studio 2017?

I understand it is possible to run an iOS Xamarin.Forms app if connected to a Mac. Is it the same for macOS? If so how is this done?
2
votes
1answer
40 views

How can I disable window resizing in a Xamarin.Mac Cocoa app?

I am building a Xamarin.Mac Cocoa application and designing the storyboard and views in Xcode. And I would like to disable view resizing to prevent the user from changing the size of the windows.
-1
votes
0answers
19 views

Trouble taking screenshots in a Xamarin.mac application [duplicate]

I'm trying to take a screenshot of the currently active window in a Xamarin.Mac application. I have tried the following: CGRect screenBounds = View.Frame; CGImage screenShot = CGImage.ScreenImage(3, ...
1
vote
1answer
29 views

How can I pass data between views via segue in a Xamarin.mac Cocoa app?

I am developing a Xamarin.Mac Cocoa app in C# with visual studio for Mac. I would like to pass an object from my first view controller to the next view controller. I have a segue called ...
1
vote
0answers
61 views

Using MvvmCross with Xamarin.Mac

I tried to implement an OSX application using Xamrin.Mac and MvvmCross v6.2.3. I successfully realized a basic example as described in official documentation and in the instructions provided with the ...
0
votes
0answers
26 views

How to make Xamarin.Mac Scriptable(AppleScript)?

I am working on Visual Studio for mac (Cocoa with C#) for a while. All I wanted to do is to make my app scriptable i.e., it could be able to accept commands from script editor. Can anyone suggest me ...
0
votes
0answers
50 views

Xamarin Mac display Popup

I am creating a Xamarin Mac application. How can I display a Popup View in Xamarin iOS application. Only few samples are there for Xamarin iOS platform.
0
votes
3answers
73 views

Is there a way that I can await a method that's currently not async?

I have this code that's run after a button is pressed: partial void DownloadPressed(NSObject sender) { Console.WriteLine("Pressed"); BeginInvokeOnMainThread(() => { ...
0
votes
1answer
73 views

Not able to launch the MAC Application that is uploaded For App Store submission

I'm having trouble with a Mac App Store submission I have an Application Developed in Xamarin.Forms I release the App from Visual Studio for MAC in Release mode When I Install the package manually in ...
-1
votes
1answer
44 views

How to install a missing Xamarin SDK for an existing installation of Visual Studio for Mac?

I want to develop a Mac app using Xamarin. However, when I open the New Project wizard, the Mac templates are nowhere to be found. I saw "Missing Project Templates for Mac Apps" on the Xamarin forum,...
0
votes
0answers
48 views

Dynamic linq query where clause from string with Xamarin.Mac

I'm trying to implement an easy dynamic linq query for an Xamarin.Mac Cocoa project using c#. In WPF I could use the System.Linq.Dynamic library to create dynamic linq queries from a string with ...
0
votes
1answer
138 views

macOS App manually signing with provisioning profile for App Store got error Code signature invalid

I try to use manual signing in macOS using provisioning profile. But everytime I try to run it will crash with error EXC_CRASH (Code Signature Invalid) If I try to use automatically manage ...
0
votes
2answers
56 views

malloc: *** error for object pointer being freed was not allocated during JSON deserializing

I'm trying to deserialize a JSON string into a List using C# in Visual Studio for Mac for an Xamarin.Mac project. I can serialize without any problem with this: using (StreamWriter file = File....
0
votes
1answer
21 views

Is there a way to have a Xamarin.Mac app hide its window?

Is there a way to have a Xamarin.Mac app hide its window? In Main.storyboard I see the <window> element has attribute visibleAtLaunch=“NO” set, so maybe there is some code making it visible in ...
0
votes
1answer
35 views

Hide Scollbar of ScrollView for Xamarin MAC platform

I want to hide the scollbar of ScollView in Xamarin.Forms I made rendere in UWP and it is working perfect and the code is protected override void OnElementChanged(ElementChangedEventArgs<...
3
votes
2answers
148 views

How to change Picker background Color in Xamarin MAC Platform

After updating the Xamarin Library and MAC OS to latest system, facing issue in Picker Background color and color of item that is selected/focused in picker for MAC Platform in my visual studio 2017. ...
0
votes
1answer
51 views

How to select a file in finder in Xamarin?

I am trying to select a file in the Finder, that is not happening the method works well in Obj-C but in Xamarin Finder gets activated but the file is not getting selected. Whereas if I use Xamarin ...
0
votes
1answer
42 views

Xamarin.MAC WebView Remote Debug

We have a Xamarin Mac App that contains a WebView. When we load a local html into the view the page stop loading contents (javascript error probably). Only happen in some pages. Any one knows some ...
0
votes
0answers
46 views

Is there a Xamarin.Mac Full Framework which targets .net Framework 4.6.1 or higher?

I am just playing around with Visual Studio 2017 on Mac. I created a small Cocoa application that works fine. I now want to reference another library that is based on .net Standard 2.0 and uses the ...
0
votes
0answers
55 views

How to setup AppDelegate in Xamarin.Mac for NSApplicationDelegate

I have an App that uses Xamarin.Forms with UWP/Andoid/iOS and want to port it to Xamarin.Mac. The official documentation suggests to subclass NSApplicationDelegate via: [Register ("AppDelegate")] ...
1
vote
0answers
60 views

Trying to create Xamarin.Forms macOS App: The name 'LoadApplication' does not exist in the current context

I am just trying to create a Xamarin.Forms Mac Application. I followed this guide which seems a bit outdated but I can stil follow the steps with Visual Studio Mac 2017: https://blog.xamarin.com/...
1
vote
1answer
37 views

Copy an Image to Clipboard in Xamarin.Mac

What is the equivalent for Clipboard.SetImage(Image) from System.Windows.Forms in Xamarin.Mac with C#?
2
votes
1answer
103 views

Xamarin.Forms: Platform-indepenent application menu

I'm writing a Xamarin.Forms desktop application, and I'll ultimately want to target MacOS and Windows. Does Xamarin.Forms have any platform independent mechanisms which you can use to build the ...
3
votes
1answer
118 views

Add a Xamarin.Forms macOS project to a solution on a PC

Is there any way to add a Xamarin.Forms macOS project to a solution on Visual Studio on a PC? I already have a solution with projects for iOS etc. Can I add macOS to the solution? I've found an ...
0
votes
1answer
106 views

Buttons and Labels text Not visible in Dark Mode of OSx Mojave.Any delegate Method for identifying the Mode Switching?

My application have some UI issues in Mac Os Mojave.Some labels and buttons text content are not visible when I switched to Dark Mode.So I did one workaroud using following code. var interfaceStyle = ...
2
votes
2answers
73 views

How to draw a rectangle in xamarin.mac

I'm trying to draw a rectangle in the xamarin.mac framework. It seems like this can be accomplished with the CoreGrpahics namespace but I'm not sure how it hooks up with xamarin. For example ...
0
votes
1answer
51 views

Xamarin.Mac - Network connected / disconnected event

How can I detect the internet connectivity in a Xamarin.Mac app? How can I receive an event when LAN cable is plugged / unplugged, WIFI connected / disconnected or connected to other available ...
3
votes
2answers
36 views

Xamarin.Mac - Show icon/image before Window Title

I am trying to show an image/icon before the title of window, just like in finder. I have used Window.SetTitleWithRepresentedFilename but it just shows a generic icon not that png file I want to show.
0
votes
0answers
618 views

System.Net.Http.HttpRequestException: An error occurred while sending the request

I do long task in background , it may take several minutes or hours and I run this task periodically ..., every 30 minute with repeating task : NSTimer.CreateRepeatingScheduledTimer(...
0
votes
1answer
49 views

Xamarin Mac, convert CGImage to .NET System.Drawing.Image

I'm using Xamarin/MONO to write a MacOS application, and I'd like to screenshot an image from the screen and use it alongside other image libraries in .NET I've found I can use the native system libs ...
0
votes
0answers
40 views

Native nuget targets for xamarin.mac and .net core

I need to bundle/link a native dylib/framework using a nuget targets file for both Xamarin.Mac (.framework) and netcoreapp/net40 (.dylib). Xamarin.Mac knows how to reference the .framework with its ...
1
vote
1answer
48 views

How to override WindowDidLoad with other changes

I am having a class that overrides ReactiveWindowController. I need to get the reference of Observer that in the base class. But as it is not there. I decided to override it. /// <inheritdoc/>...
0
votes
1answer
28 views

How to remove the NSNotificationObserver Xamarin

I am having a class extending ReactiveWindowController. As in base class I see this: // subscribe to listen to window closing // notification to support (de)activation NSNotificationCenter ....
0
votes
2answers
99 views

MMP : error MM5109: Native linking failed with error code 1. Check build log for details

I am creating Binding DLL for Xamarin.Mac using the Binding project in visual studio Mac. I am able to build Binding DLL successfully, However while going to use that binding DLL in Xamarin.Mac ...
0
votes
1answer
61 views

Opening a New Custom Window From Other in Xamarin.Mac

I have two customized NSWindow in my application like these: Window 1: public partial class LoginVindow : NSWindow { public LoginVindow (IntPtr handle) : base (handle) { }...
1
vote
0answers
66 views

View added u AddSubview Not showing in UI (Mac OS Mojave)

We have a NSview in the homePage of our application.Where we add a Nsviewcontroller as subview.The Nsviewcontroller consists of a tableview with delegates. Here the tableview inside the viewcontroller ...
0
votes
1answer
35 views

How to embed Xamarin.Forms in native Xamarin.Mac?

I'm trying to embed a XAML page created with Xamarin.Forms in my native Xamarin.Mac application. How can I achieve that?
1
vote
1answer
42 views

How to change cursor type on nsbox and nsimage

I am using xamarin.mac to make an cocoa application. I have box on view controller, i want whenever mouse comes over on that box it changes in to hand just like in nsbutton.
2
votes
1answer
30 views

Is CloudKit missing from Xamarin.Mac?

I'm trying to develop an app that will run on both OSX and iOS, using CloudKit to help sync the data. I've found documentation for CloudKit on iOS, but I've been unable to find corresponding ...
1
vote
1answer
29 views

How to change opacity of NSImageview in Xamarin.mac

mac to develop an application for mac. I am struggling for changing opacity of imageview which is in background. When i try to access that control in viewcontroller.h file it shows me no overloads for ...
1
vote
0answers
62 views

Creating screensavers in Xamarin.Mac

I am brand new to Xamarin and OS X development in general, and am hoping to use Xamarin.Mac to port a screensaver to OS X. Unfortunately I cannot find any examples or suggestions that this can be done ...
0
votes
0answers
97 views

Xamarin app won't publish to apple store - multiple ERROR ITMS-90045 errors

I have a Xamarin Forms app that was last published using Xamarin Studio in 2017. The app builds error free using Visual Studio 2017 and runs fine when an iPhone is connected to the Mac. When I try ...
0
votes
0answers
26 views

Xamarin.Mac - TableView sorting by selecting option from dropdown

I have implemented the TableView sorting when table header is clicked. We have another requirement to sort the table data by different options e.g. Name, Date, Size. I am looking for a way to show a ...
1
vote
1answer
167 views

Get active window information using C# on Mac

Prerequisites. Visual Studio for Mac, Mono, C# I'm porting existing C# application from Windows to Mac. And what I currently need is to get information about currently active window/process. Just ...
1
vote
1answer
128 views

NSTextField with suggestions shown in dropdown

I am trying to implement autocomplete with an NSTextField where the user will type in some string and suggestions will be fetched from an API to be displayed under the text field. Optionally display a ...
1
vote
1answer
162 views

Xamarin - XAML - top bar app menu

I am working on Xamarin Mac app with XAML, but I am not able to add app menu to top bar. I think, that it is generated with xCode in Main.storyboard, but I am not using xCode, because of using XAML.
1
vote
1answer
46 views

How to create and show menu when user right clicks on an NSTableCellView Xamarin.Mac

I need to show a menu on an NSTableView when user right clicks anywhere on the table row. Just like when we right click anywhere in the browser and menu shows up.

http://mssss.yulina-kosm.ru