Skip to main content

All Questions

Tagged with
1 vote
1 answer
470 views

Cannot build an installer for a CocoaApp (Xamarin.Forms) on Visual Studio for Mac

I have been trying to build a simple installer from a newly created template from Visual Studio for Mac. New Project > Cocoa App Nothing fancy really. I can run the app in debug mode, but as soon ...
Julien's user avatar
  • 447
0 votes
0 answers
132 views

could not connect to the debugger cocoa app Visual Studio MAC

Hello i am new in Visual Studio MAC, i developed many application on Windows using Visual studio but i started on macOS recently. I am developing an application in COCOA APP using Xamarin on Visual ...
Ebaad Ahmed's user avatar
0 votes
0 answers
26 views

Xamarin Workbook and Visual Studio gives different result

I am facing an issue with the API returning different results when run from the Visual Studio and Xamarin Workbook also when the app is built from Bamboo. The code that gives strange result is this: ...
Anoop Vaidya's user avatar
  • 46.6k
3 votes
1 answer
733 views

Prevent iTunes / Music.app Start After Pressing F8(Play) Button with C# & Xamarin

As we know, if we press the F8(Play) keyboard button, iTunes or Music .app opened in default on macOS. Some Swift classes are available for preventing this keyboard shortcut but they are not ...
berkb's user avatar
  • 612
0 votes
1 answer
2k views

Using NSAppleEventsUsageDescription in Xamarin to get Login Items

I need to run AppleScript from my code to get LoginItems name. I am able to do it from Xcode project. But when I do same with Xamarin it fails. What am I missing in Xamarin project? Any help to get ...
Anoop Vaidya's user avatar
  • 46.6k
0 votes
1 answer
53 views

Does the "/Volumes" name changes based on system language, if yes how to adapt this?

I am using this code to check if the client runs from DMG /Volume, and show an alert and quit. private void IsRunningFromDMG() { var currentPath = NSBundle.MainBundle.BundlePath; if (...
Anoop Vaidya's user avatar
  • 46.6k
0 votes
1 answer
174 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 ...
Anoop Vaidya's user avatar
  • 46.6k
0 votes
0 answers
5k 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(...
Nininea's user avatar
  • 2,739
0 votes
0 answers
41 views

Why is the class not releasing – i.e., destructor is not getting called?

I am creating an OSX, Mac project. I have a subclass NSWindowController seeing a memory leak. I am seeing it at two places: When I use OkButton.Activated += OKClicked. I unregister it in WillClose as ...
Anoop Vaidya's user avatar
  • 46.6k
1 vote
1 answer
75 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/>...
Anoop Vaidya's user avatar
  • 46.6k
0 votes
1 answer
160 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 ....
Anoop Vaidya's user avatar
  • 46.6k
0 votes
1 answer
735 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) { }...
berkb's user avatar
  • 612
0 votes
1 answer
371 views

How to run async calls as sync

I am new to C# & Xamarin. I feel there would be some quick solution to achieve this, but I already consumed a day to find one. Please give me a hint so I can proceed in the right direction. The ...
Anoop Vaidya's user avatar
  • 46.6k
1 vote
0 answers
258 views

prevent cocoa application from becoming active

I have a cocoa application that has an NSView in the primary NSWindow that can be clicked. When the NSView is clicked, I want the mousedown event to fire, but I do not want my application to become ...
John VanSickle's user avatar
0 votes
1 answer
190 views

How to display elements inside NSCollectionView with various shapes

I am a rookie Cocoa guy. I need to design and implement a view which will show collection of labels on Mac OS using Xamarin. These labels will have a text and color associated with them. When shown ...
sachin saner's user avatar

15 30 50 per page