[Mono-osx] How to hide mono and windows form in Mac Dock

Stifu stifu at free.fr
Wed Dec 15 16:58:00 EST 2010


To clear things up: if you used MonoMac, you wouldn't be doing your app half
in Cocoa, half in C#, but 100% in C# (wrapping Cocoa).
You'd just need to put an interface in place to be able to use a different
GUI toolkit depending on the OS (which means a bit of redundant code, but
for the UI only).


jocull wrote:
> 
> Thanks for the information. From what it sounds like, I may have to be
> sticking with Qt / C++ for now. It seems like Mono still has a ways to
> develop on the Mac. The progress is good, great even, but I'm really
> hoping
> to avoid doing things like writing half of my application in Cocoa and
> half
> in C#.
> 
> Mono is a really exciting project, and I was hopeful at the possibility of
> moving my existing C# application over to GTK# for the GUI and mostly
> reusing the rest. So thanks again, I'll try my best to stay plugged into
> the
> Mono world and see how things go.
> 
> On Wed, Dec 15, 2010 at 4:32 PM, Stifu <stifu at free.fr> wrote:
> 
>>
>> Oh, I thought it was WinForms, from the original mail title.
>>
>> The main reason Mac hasn't received attention is that most Mono
>> developers
>> are on Linux. And I guess Windows naturally gets more attention than Mac,
>> since .NET comes from Windows (so if you want to compare .NET and Mono
>> side
>> by side, or check how .NET behaves, you need Windows). Consequently, the
>> Mac
>> community users might have been less active than their Linux and Windows
>> counterparts...
>> There may be deeper reasons too, like regarding UI toolkits, and the fact
>> the community is a bit divided on Mac, due to the existence of various
>> sets
>> of Mac/Cocoa bindings, and no officially-supported one until not long
>> ago.
>> MonoMac will hopefully fix that.
>>
>> Anyway, Mac has clearly gotten much more attention lately: numerous
>> improvements to MonoDevelop on Mac, MonoTouch, MonoMac, and more to come
>> like being able to bundle Mono with your app... Miguel and some of his
>> pals
>> now know much more about OS X / iOS than they did several years ago.
>> Recently, Miguel even made a blog dedicated to OS X news. As for GTK#,
>> just
>> earlier this year, the GTK# designer didn't work on Mac, and now it does.
>> So
>> yeah, the future is bright IMO.
>>
>>
>> jocull wrote:
>> >
>> > The dock is similar to the task bar on Windows 7, but it shows all
>> > programs
>> > that are running, regardless of whether or not they have windows up. So
>> if
>> > I
>> > have a running app, but hide all of my Windows, the app is still
>> running
>> > and
>> > the icon is still in the Dock. Super annoying.
>> >
>> > I'm using GTK# on Mac, so ShowInTaskbar isn't actually a property I can
>> > use.
>> > I tried what is supposed to be its equivalent ( SkipTaskbarHint ) but I
>> > had
>> > no luck with that either.
>> >
>> > Since no one anywhere seems to know how to hide the Dock icon while
>> using
>> > a
>> > Mono application, I will probably file this as a bug. However, I see
>> other
>> > bugs that I experience in the list that are nearly two years old and
>> still
>> > filed as "new". Such as this one...
>> >
>> > https://bugzilla.novell.com/show_bug.cgi?id=477871
>> >
>> > I seems like Mac is pretty far from a high priority platform for Mono.
>> Why
>> > is that?
>> >
>> > On Tue, Dec 14, 2010 at 2:26 AM, Stifu <stifu at free.fr> wrote:
>> >
>> >>
>> >> I'm a Mac noob: the Dock is essentially like a task bar, right?
>> Although
>> >> it
>> >> also contains non-launched apps, like the left area of the task bar in
>> >> Windows 7.
>> >>
>> >> So maybe the ShowInTaskbar Form property *should* hide it from the
>> Dock
>> >> if
>> >> set to false? I'm not saying it does now, but maybe that is a
>> desirable
>> >> feature that should be filed on bugzilla.
>> >>
>> >>
>> >> jocull wrote:
>> >> >
>> >> > I am having the exact same problem with the current version of mono.
>> >> This
>> >> > is nearly two years old, but has it ever been resolved? I am finding
>> >> zero
>> >> > information about it, and currently have an (unanswered) Stack
>> Overflow
>> >> > question open.
>> >> >
>> >>
>> http://stackoverflow.com/questions/4414629/system-tray-only-no-dock-icon-application-using-c-mono-on-mac
>> >> >
>> >>
>> http://stackoverflow.com/questions/4414629/system-tray-only-no-dock-icon-application-using-c-mono-on-mac
>> >> >
>> >> > If anyone can help, please let me know. This is pretty much a deal
>> >> breaker
>> >> > for me as far as using Mono goes!
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://mono.1490590.n4.nabble.com/How-to-hide-mono-and-windows-form-in-Mac-Dock-tp1548824p3086537.html
>> >> Sent from the Mono - OSX mailing list archive at Nabble.com.
>> >> _______________________________________________
>> >> Mono-osx mailing list
>> >> Mono-osx at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-osx
>> >>
>> >
>> > _______________________________________________
>> > Mono-osx mailing list
>> > Mono-osx at lists.ximian.com
>> > http://lists.ximian.com/mailman/listinfo/mono-osx
>> >
>> >
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/How-to-hide-mono-and-windows-form-in-Mac-Dock-tp1548824p3089932.html
>> Sent from the Mono - OSX mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-osx mailing list
>> Mono-osx at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>
> 
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
> 
> 

-- 
View this message in context: http://mono.1490590.n4.nabble.com/How-to-hide-mono-and-windows-form-in-Mac-Dock-tp1548824p3089980.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list