dock

OSX two dock icons for same application

丶灬走出姿态 提交于 2019-12-12 04:59:17
问题 I have two versions of the same application: version 1 located in /Applications(app1) and version 2 located in /Application Support(app2). In this context, I want that when launching app1, to redirect to app2, that means quitting app1, and launching app2.(I already implemented that using a command line tool, which will wait for app1 to finish, and launch app2). This application has LSUIElement=1(status item mostly), however the application may appear in dock: if a window is opened from status

Cocoa Dock fires NSApplicationDidChangeScreenParametersNotification

筅森魡賤 提交于 2019-12-11 14:41:41
问题 When changing the dock position Cocoa is firing a NSApplicationDidChangeScreenParametersNotification: The problem is that as for Apple Docs, it should be raised only when Posted when the configuration of the displays attached to the computer is changed. The configuration change can be made either programmatically or when the user changes settings in the Displays control panel. The notification object is sharedApplication. This notification does not contain a userInfo dictionary. So if you

How do I dock a UserControl into a FlowLayoutPanel?

北慕城南 提交于 2019-12-11 08:29:47
问题 I have a FlowLayoutPanel and a UserControl. I've added multiple usercontrols into the FlowLayoutPanel , and I'm trying to dock them to the top, so when I change the size of the FlowLayoutPanel the size (width) of the usercontrols changes accordingly. 回答1: You cannot dock anything inside a FlowLayoutPanel, it's simply ignored. Check out the answer here apparently posted by the Microsoft team. They say: The FlowLayoutPanel relies on a largest control to effectively define the column/row within

How can I re-size controls based on resolution?

牧云@^-^@ 提交于 2019-12-10 18:53:49
问题 Inside a WinForms application what is the best way to handle re-sizing controls to match based on screen resolution and maximizing and re-sizing the window. I have 3 columns that are set like this. LABEL TEXTBOX in each column. You could count that as 6 columns. I have tried anchoring to the right but the problem there is the textbox in column 1will overlap the next 2 columns. I have also tried docking but that does not seem to do the trick. Is there any easy way of doing this? 回答1: TL;DR :

Wpf Dock Panel Dock left and Dock right

帅比萌擦擦* 提交于 2019-12-08 11:56:21
问题 I am not able to move buttons inside of a dock panel to the right, I tried few solutions, and after all I put them in stack panels and tried to move them to the right, but acctualy they wont move anywhere, here is how it looks: And here is my code: <GroupStyle> <GroupStyle.ContainerStyle> <Style TargetType="{x:Type GroupItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type GroupItem}"> <Expander IsExpanded="True" Background="Black" Opacity="0.7"> <Expander

Disabling dock icon for an app in Mac OSX in different way

情到浓时终转凉″ 提交于 2019-12-08 11:16:52
问题 In mac osx for most of the applications keeps a dock icon. But if the developer of the same applications wants to hide the dock icon, then how do he hide it? As a developer i know ' Info.plist ' property file is one way to hide the dock icon for an application. But dont we have any other solution for this? I hope there should be some other ways as everybody know "there are N no of way of solutions for a problem" Thanks in advance M@k4mac 回答1: If you're developing the app, you want to set

Dropping files on application icon in Dock

为君一笑 提交于 2019-12-08 06:46:27
问题 I have been hitting the wall on this issue for a few days now, and cannot for the life of me figure out what I am doing wrong (or if this is some kind of bug): I have a custom Mac application (in Java, if it matters). It essentially takes a specific type of document bundle, does some processing on it, and sends the results to a server. I have everything working, except for the one use-case of a user dropping a "file" onto the application's dock icon. Everything I have read so far seems to

Run another application using AppleScript without showing it on the dock

时光怂恿深爱的人放手 提交于 2019-12-08 02:20:47
问题 Using AppleScript you can create a script that runs another application, and then save that script itself as an application and place it in the dock. The problem (not really a problem) is that when you click it, it will still show the other application on the dock. Is it possible to prevent the other application from showing in the dock, yet show its GUI as it would normally do when executed? Thanks 回答1: The only solution I can think of is to actually modify the 'other app' to have no Dock

HTML dock to bottom

拥有回忆 提交于 2019-12-07 12:49:50
问题 I have the following HTML: <div class="gallery-item"> <a href="ddd.pdf" style="display:block; width: 100%;"> <span id="filename_1" style="white-space: nowrap;">Hello</span> </a> <div id="commands"> <input type="text" readonly="readonly" value="https://blob"> <a href="sdfasdfasdfasdf">Delete</a> </div> </div> CSS: .gallery-item { border: 1px #AAA solid; display: inline-block; margin: 2px; padding 2px; width: 130px; height: 90px; text-align: center; border-radius: 5px; vertical-align: middle; }

SIMBL/Bundle/dylib injection into Dock.app

眉间皱痕 提交于 2019-12-07 10:40:53
问题 I'm working on a simple SIMBL bundle to decrease the FullScreen animation time in Lion. It's no big deal to change the animation of the windows, however doing that for the menubar/desktop animation part (where the menubar+desktop slide to the left) is a problem. I think that Dock.app is responsible for that animation. However, SIMBL can't inject a bundle into Dock.app (same with Finder). I tried creating a .dylib which then would be loaded into Dock by setting the LSEnvironment in Dock's Info