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

Connection to Xamarin.iOS Build Host failed. Double click here to attempt to reconnect/select a server

While loading any new project in Visual Studio 2012 and connecting with Xamarin Build host provider, it gives error "Connection to Xamarin.iOS Build Host failed. Double click here to attempt to reconnect/select a server" Followed below mentioned…
0
votes
1 answer

How to set up dependency properties with Xamarin.Mac?

I have the following object with a couple of properties: public class Test : NSObject { [Export("formattedFoo")] public string FormattedFoo { get { return string.Format("Test {0}", Foo); } } [Export("foo")] public string Foo { get;…
Michael Teper
  • 4,591
  • 2
  • 32
  • 49
0
votes
1 answer

How to convert a MonoMac project to Xamarin.Mac

We have an existing MonoMac project that we have not updated lately. We just tried to make some updates and compile a release and we got an error stating "Bundling the Mono Runtime is only supported in Xamarin.Mac". We used to be able to include the…
Keith Maurino
  • 3,374
  • 10
  • 40
  • 48
0
votes
1 answer

Why does Xamarin.Mac window abruptly disappear?

I recently posted about a bug in MonoMac in which the window would abruptly disappear after clicking on a button 20 times or so. That bug, it turned out, doesn't seem to affect Xamarin.Mac, so I switched my project to that. But now I'm seeing…
Joe Strout
  • 2,634
  • 2
  • 28
  • 39
0
votes
1 answer

System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.EntryPointNotFoundException

I seem to be traveling the road of trial and error that others before me have traveled in trying to get a new set of MonoMac bindings created. And like others, I've solved some things but ultimately am stuck. At this point the bindings dll is…
DennisWelu
  • 788
  • 13
  • 26
0
votes
1 answer

Weird things happen in the main thread in Xamarin.mac

I have a method and something weird is happening public void UpdateProgressBar(double newValue) { // Make sure we don't go over the maximum value for the progress bar if (newValue > _maxValueProgressBar) …
user2984254
  • 109
  • 1
  • 7
0
votes
2 answers

Xamarin Error on Signed Assembly

I developed and built my application using F# and C# successfully using Xamarin Mac. It was all fine and finished development, until I switched to App Store compilation. The compilation goes fine, and signs all the assemblies. However when I run…
Codingday
  • 857
  • 6
  • 15
0
votes
1 answer

What is the exact difference between Xamarin.Mac and Xamarin.iOS?

We are planning to develop native cross platform mobile apps using Xamarin, so we are trying to evaluate Xamarin.Mac and Xamarin.iOS. What is the exact difference between Xamarin.Mac and Xamarin.iOS? and which one exact fit for Cross platform mobile…
Ravi
  • 225
  • 1
  • 15
0
votes
1 answer

How to do background processing in MonoMac

I just started using MonoMac. I have a small window with a window which contains a button and a label, if I click the button a process is started (executing an loop) til the loop is finished, the UI is locked, but I'd like to update the label (or a…
john84
  • 2,431
  • 4
  • 24
  • 30
0
votes
1 answer

Remove all items from NSTreeController

I would like to clear all items out of an NSTreeController that I added using Controller.AddObject. Is this possible? I presume it is possible to retrieve all the index paths, sort by depth in reverse and remove the items one by one, but I'm hoping…
tofutim
  • 22,664
  • 20
  • 87
  • 148
0
votes
2 answers

Operator applicable in XamMac but unapplicable in MonoMac

I am trying to compile a Xamarin.Mac project with Monodevelop+Monomac (3.0.5 from source). I changed the reference from XamMac to MonoMac, and everything seems to be fine except this: Error CS0019: Operator '==' cannot be applied to operands of…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
0
votes
2 answers

Xamarin C# Cross Platform Application

I am new to using Xamarin and have always used Visual Studio, however I now require to develop a desktop application which will run on both Mac and Windows, OR at least a package which will let me package for both. I have created a GTK 2.0 Project,…
Steve Church
  • 344
  • 1
  • 3
  • 12
0
votes
1 answer

Cast Action to NSAction?

I was wondering if there's a cleaner work-around for this: public class Sys { public static void DispatchAsync(Action action) { DispatchQueue.MainQueue.DispatchAsync(() => { action(); }); } } This Sys class is platform-neutral,…
0
votes
2 answers

Error: "The name "...." does not exist in the current context"

I'm new to xna and I'm making an rpg. When I try and build by project I get the errors: 1) The name "component" does not exist in the current context: if (component is DrawableGameComponent) ((DrawableGameComponent)component).Visible =…
user481710
  • 59
  • 4
  • 11
0
votes
1 answer

Dispose and dealloc semantics in Xamarin

I have a Cocoa class bound in monomac. If I call Dispose() on an instance of that class, should it always invoke dealloc on the unmanaged side? What reasons might there be for dealloc not being invoked when the managed class is Dispose()ed?
TheNextman
  • 12,428
  • 2
  • 36
  • 75
1 2 3
38
39