dock

Programmatically setting the dock:name Java Mac OS X JVM property

雨燕双飞 提交于 2019-12-17 16:28:15
问题 Is there a programatic alternative to setting the dock:name Java Mac OS X property by doing java -Xdock:name="My App Name" -jar myapp.jar , or is this the only way to set the dock:name property? 回答1: It's been a while, but I believe you need to do the following (this is assuming you're using Swing): Put your main() method in a separate class from the JFrame. Before creating the JFrame, set the "com.apple.mrj.application.apple.menu.about.name" system property. For example: public class

How to hide the Dock icon

走远了吗. 提交于 2019-12-17 04:12:14
问题 I want to make a preference for hiding the Dock icon and showing an NSStatusItem . I can create the StatusItem but I don't know how to remove the icon from Dock. :-/ Any ideas? 回答1: I think you are looking for the LSUIElement in the Info.plist LSUIElement (String). If this key is set to “1”, Launch Services runs the application as an agent application. Agent applications do not appear in the Dock or in the Force Quit window. Although they typically run as background applications, they can

How to hide the Dock icon

老子叫甜甜 提交于 2019-12-17 04:12:08
问题 I want to make a preference for hiding the Dock icon and showing an NSStatusItem . I can create the StatusItem but I don't know how to remove the icon from Dock. :-/ Any ideas? 回答1: I think you are looking for the LSUIElement in the Info.plist LSUIElement (String). If this key is set to “1”, Launch Services runs the application as an agent application. Agent applications do not appear in the Dock or in the Force Quit window. Although they typically run as background applications, they can

How do you change the Dock Icon of a Java program?

Deadly 提交于 2019-12-17 03:41:14
问题 How can I change the Dock Icon of a program, in Java, on the Macintosh platform? I have heard about using Apple's Java library (that provides some sort of extra support on the Mac platform), but I have yet to find some actual examples. 回答1: Apple eAWT provides the Application class that allows to change the dock icon of an application. import com.apple.eawt.Application; ... Application application = Application.getApplication(); Image image = Toolkit.getDefaultToolkit().getImage("icon.png");

What API can be used to hide OSX Dock when you drag a window towards it

喜夏-厌秋 提交于 2019-12-14 04:18:53
问题 Idea is simple(stolen from Ubuntu): autohide Dock when you drag window toward it and begin to overlap it. Turn autohiding off and show Dock when window is moved out of area when Dock is located. What API can be used to achieve that ? update: managing autohide possible from command line this way but it's horrible defaults write com.apple.dock autohide -bool true killall Dock 回答1: Well, when the Dock is configured to (always) stay visible, the Window Manager will simply refuse to position the

Can Applescript list all the applications placed in the dock?

﹥>﹥吖頭↗ 提交于 2019-12-13 18:08:56
问题 I can't work out how to list all the Applications that a user has placed in the dock. Is this possible? 回答1: Try this. This is a list of the apps a person has that are persistent in the dock. What I've basically done is use system events to read the plist file into an applescript record in the pListItems variable. Then I can use applescript techniques to access the lists and records inside of pListItems. There's lots of information in com.apple.dock so you can look at the pListItems variable

How to remove the dock icon of a shell executable?

隐身守侯 提交于 2019-12-13 15:14:42
问题 I have a java application built with Eclipse, for Mac OS X. This app is installed via a .pkg file and supposed to be daemonized . Everything works fine, with Macbooks (Pro, Retina) , but with the iMac I work on, when the application launches, i have an icon on the Dock , as you can see on the following link. I have already tried the solution in this topic: stackoverflow.com/a/620950/3641679 but it didn't work (I still have the Dock icon). Currently the Info.plist looks like this. What can I

Is it possible to dock wx.auiManager panes onto tops/bottoms of another panes?

放肆的年华 提交于 2019-12-13 06:43:13
问题 with this code: import wx import wx.aui class MyFrame(wx.Frame): def __init__(self, parent, id=-1, title='wx.aui Test', pos=wx.DefaultPosition, size=(800, 600), style=wx.DEFAULT_FRAME_STYLE): wx.Frame.__init__(self, parent, id, title, pos, size, style) self._mgr = wx.aui.AuiManager(self) # create several text controls text1 = wx.TextCtrl(self, -1, 'Pane 1 - sample text', wx.DefaultPosition, wx.Size(200,150), wx.NO_BORDER | wx.TE_MULTILINE) text2 = wx.TextCtrl(self, -1, 'Pane 2 - sample text',

Iphone syncing via cable

拈花ヽ惹草 提交于 2019-12-13 02:33:58
问题 I've made an IPhone App that communicates to a service by calling a webservice and exchanging data as xml. For this to take place, there should be WIFI access. What I'm trying to do now is to do the same but in places without WIFI access. The only way I can think of doing this would be through the USB cable (dock cable?). Unfortunately, no amount of searching online has revealed a way to do this. Is it even possible? Does anyone know how to do this? Some pointers on at least where to look for

一个屌丝从Windows到Mac平台的使用告白(二)

混江龙づ霸主 提交于 2019-12-13 00:15:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 主要介绍最近使用的一些技巧,包括键盘快捷键,dock设置,触发角设置 ,空格预览4个方面。 1、键盘快捷键 简单介绍几个比较常用的快捷键: command+c/v/x 复制/粘贴/剪切, command+s 保存 command+Q退出当前程序,command+ ` 循环显示同一程序下的窗口 command+空格 调出spotlight,control+空格 切换输入法 (为了方便切换输入法,调换过的) control+左右键 切换桌面 , control+上下键 显示mission control和当前窗口缩略 2、dock设置 简单设置,就不介绍了,比如放大,隐藏,所处位置,点左上角那个苹果就知道了 在windows下,点击任务栏上的图标就可以展开或是最小化窗口,可是在Mac上最小化的窗口都在dock的最右边,总是有些不熟悉。于是可以在dock设置里把“将窗口最小化为应用程序图标”选项打开,这样的话,最小化窗口的时候就跟windows上类似了,当然这个只是因人而已,本人还是比较习惯最小化到图标上。 3、触发角设置 这个设置不容易找到,在mission control的设置里面,主要设置鼠标滑倒屏幕四个角的时候触发的功能。 左下角-触发角,找到之后,就知道都是什么功能了。不再做详细介绍。 4、空格浏览