Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 02 2016 16:31
    @chamons banned @IfErrThrowBrick_twitter
captainjono
@captainjono
was using tryget not get! and now its returned a nswindow correctly. i then do mainWin.InvokeOnMainThread(() => mainWin.ToggleFullScreen()) which throws a UI Consistancy error..? i tried multiple ways to invoke, nothing seems to come off?
Rolf Bjarne Kvinge
@rolfbjarne
did you call NSApplication.Init ()?
captainjono
@captainjono

yeh i did - but i am doing it a little later in the app bootstrapper to allow CEF to startup correctly if needs be (its a multi-process architecture that executes the host process multiple times with different commandline args and can timeout if not snappy). Could that effect Init()?

It seems like its on the correct thread to me; im doing the work in the create handler, and if i throw at that point,I can see the .dynlib createWindow in the stack. Cef has its own methods to call on the UI thread, could also try them.

captainjono
@captainjono
If i inspect the window variable in the debugger, the debugger crashes out with the same error. I can see the correct window title on a prop before it crashes, though so it feels like its connected properly to the underling api / mac window handle on some level.
captainjono
@captainjono
So i went ahead and integrated eto.forms where i was trying to hook into the window handling as i required it for other aspects of the application and have gotten it setup to the point where i can use its UI.Invoke methods to get my calls onto the right thread. i'll step through the source code and see how its achieving the integration, I want to understand the mechanics of whats going on here.
Rolf Bjarne Kvinge
@rolfbjarne
as long as the managed NSApplication.Init () method is called before you do anything else in managed code, you should be fine
Matheus Dadalto
@mthdadalto
Anyone has any idea of how to disable this from mac/win-xamarin?
 touch ~/.mtouch-launch-with-lldb
/
You must now execute:
lldb -s /tmp/mtouch-lldb-prep-cmds
Rolf Bjarne Kvinge
@rolfbjarne
execute rm ~/.mtouch-launch-with-lldb from a terminal
on the mac
Matheus Dadalto
@mthdadalto
worked, thanks
jingliancui
@jingliancui
hello team,can you provide progress of swift binding tool
fodcodecrazy0316
@fodcodecrazy0316
Hello
everyone I want to use camera permission on xamarin ios
image.png
I have added privacy string into info.plist but not working
i hope someone helps me. thanks guys
Chris Hamons
@chamons
Friendly reminder that we've moved to https://aka.ms/dotnet-discord and most folks won't be checking here in the future.
Francisco Moraes
@fmoraes74
how can I fix this?
/Users/fmoraes/Projects/TestApp/TestApp.Mac/TestApp.Mac.csproj(101,11): error MSB4226: The imported project "/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Xamarin/Mac/Xamarin.Mac.CSharp.targets" was not found. Also, tried to find "Xamarin/Mac/Xamarin.Mac.CSharp.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "/Library/Frameworks/Mono.framework/External/xbuild/" and "/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/docker/MonoDevelop.Docker/MSbuild" . These search paths are defined in "/Users/fmoraes/Library/Caches/VisualStudio/8.0/MSBuild/35979_1/MonoDevelop.MSBuildBuilder.exe.config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.
Happened after the latest upgrade of VS
Francisco Moraes
@fmoraes74
nm, reinstalling Xamarin.Mac fixed it
awattar
@awattar
Hi. Is it possible to set FRAMEWORK_SEARCH_PATHS in Xamarin iOS project config?
pm64
@pm64
Knock knock, anyone home? Is it safe to update XCode to 12.2 (released yesterday)?
Julio C├ęsar Rocha
@JunielKatarn

This forum has moved to Discord.

That said, yes. I used 12.2 yesterday for my XF project.

pm64
@pm64
Thanks @JunielKatarn. What is the best channel to use in Discord? I posted to #xamarin and didn't get a response.
filson1
@filson1
Hey. Any tips for getting the DeviceAgent app to install along with our Xamarin app on physical phones? We're connecting to an already installed app.
Dmitry
@helviett
Hello! Does anybody get strange behaviour when referenced project dll is not copied to bin folder in Release mode?
Dmitry
@helviett
What should I do with that?
error MM5312: pkg-config failed with an error code '1'
It doesn't make any sense.
And what build system does Visual Studio For Mac uses? Vstool, msbuild?
Dmitry
@helviett
What's the difference between launching app with open -a /path/to/app and double-clicking app icon?
Our command line tool is unable to find anything it wants when just double clicking app icon.
Cigernaut
@Cigernaut
hello,plz help,how to install for Windows in MS visual studio 2019?