xamarin.mac

NSTableCellView Image View action

三世轮回 提交于 2019-12-13 06:17:12
问题 I need to call catch action of ImageView inside NSTableCellView. I add some action for it, but when I click the row action is not called... I have set accept touch event property true, but no result PatientTableView.AcceptsTouchEvents = true; 回答1: image view does not support click action (use NSButton for that). It does support an action when a user drags an image on to it (if the imageview is set to editable). Never used this thought. I never use actions in xcode. But always subscribe to an

Xamarin not resolving references correctly

一曲冷凌霜 提交于 2019-12-12 12:06:41
问题 Anybody seen the following an know of a workaround? Question If I have multiple solutions with multiple projects in each one. What I’m seeing is a failure to resolve assembly references. This seems to occur when I previously had an open solution that was built but had a missing reference (I forgot to build it). Then I open up the solution that will build the missing reference and do a build. Sometimes this solution fails to build even thought it has built successfully in the past. Error

Why does Xamarin.Mac window abruptly disappear?

限于喜欢 提交于 2019-12-12 01:06:23
问题 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 virtually the same bug in a different context: after typing a few lines of text into an NSTextField, the window disappears in exactly the same manner. No error, no exception; it just vanishes. Poof, gone! I've reproduced this in a trivial project: you

Bundle Multiple Xamarin apps in one pkg installer

雨燕双飞 提交于 2019-12-11 23:16:07
问题 I have few Xamarin apps and I want to bundle them all as a single pkg/installer and organize them into a folder under Applications similar to the following snapshot attached. Is there an option to specify additional Xamarin apps in the bundle settings of the project or any build script needs to be written? Can anybody point to some samples ? Thanks, Suma. 回答1: 1. pkg installer: Packages See Payload section to add folder and your .app files. They also support Certification for signing

Equivalent of ReloadData for NSCollectionView to redraw item views

為{幸葍}努か 提交于 2019-12-11 06:57:58
问题 I have a toggle to change the font attributes. In my NSOutlineView, I call ReloadData to have everything re-render. However, how can I force NSCollectionView to re-render. I tried cvReader.NeedsLayout= true; cvReader.Layout(); cvReader.NeedsDisplay = true; cvReader.Display(); to no avail. Any hints much appreciated. Update. I also tried cvReader.NeedsDisplay = true; cvReader.Window.ViewsNeedDisplay = true; cvReader.Window.FlushWindowIfNeeded(); As well as assigning the content again. It feels

NSTable row click event

馋奶兔 提交于 2019-12-11 03:49:07
问题 I am working on a Xamarin Mac application and am currently creating a newsfeed list. What I would like to have is that when the user click on one of the row I do some stuff (open up a browser and show the full story). Here is how my custom cell (row) looks like. public class CustomLatestNewsCell : NSView { public NSText Title; public NSText Date; public NSText Details; public CustomLatestNewsCell() { Title = new NSText(); Title.Frame = new CoreGraphics.CGRect(0, 120, 300, 70); Title.TextColor

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

喜你入骨 提交于 2019-12-10 13:45:11
问题 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 application: Mono MVC5 Web API2 Test Case Test procedure: run the MVC application in xamarin On load the page will do a ajax post to the server. a) server will return a 500 error on failure b) console.log post arg on success Error: { "Message": "An error has

Application backgrounding in Xamarin.Mac

只谈情不闲聊 提交于 2019-12-07 19:37:30
问题 How do I achieve Application backgrounding in Xamarin.Mac . I want something that work similar as android services : Android Services - A Service is an application component that can perform long-running operations in the background, and it does not provide a user interface. Another application component can start a service, and it continues to run in the background even if the user switches to another application. Additionally, a component can bind to a service to interact with it and even

Xamarin SOAP Web Service

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 12:51:35
问题 I created a Portable Library Project in Xamarin. I want to add web service but the framework area is closed. What is the reason for this? Is there anyone who has experienced the same problem ? Exp Url : 111.111.11.11:8013/Services/Kurum/IdentityMngmnt/Authentication_V1?wsdl Screenshot 1 Screenshot 2 来源: https://stackoverflow.com/questions/41959167/xamarin-soap-web-service

Xamarin Macintosh Customer URL protocol handle passed parameter

穿精又带淫゛_ 提交于 2019-12-06 14:09:09
I've written a Macintosh app that handles a custom protocol: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>My Cool Handler</string> <key>CFBundleURLSchemes</key> <array> <string>coolhandler</string> </array> </dict> </array> All well and good. It launches. However, I'm clicking on a link like this: coolhandler://Iwant/toparse/this In Windows, the registry entry is simple and this work just fine. When my Windows app launches, the whole url is passed as an argument and I can parse it. protected override void OnStartup(StartupEventArgs e) { _url = !e.Args.Any()?""