It is currently Sat Nov 26, 2011 8:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Ted ignores "Start ted minimized to tray" option on Mac
PostPosted: Tue Nov 09, 2010 12:35 am 
Offline

Joined: Tue Nov 09, 2010 12:13 am
Posts: 3
I thought I was just being stupid, but after some digging I found out that this is a much trickier issue than it sounds like.

First of all, Apple doesn't have a way to make a dock icon optional via a user preference - it needs to be set when the application is written. See http://codesorcery.net/2008/02/06/featu ... y-to-do-it for more details and some work arounds. http://www.cocoadev.com/index.pl?TransformProcessType disagrees, and says that there is an API in 10.3+. I've not looked further to work out which is correct.

Second, if you do turn the dock icon off, that also disables access to the menus (you can't switch to the application, so the menu bar keeps the menu for the old application).

If I get round to it I'll look into this further an write a patch to solve one or other of these problems. In the mean time, it is possible as a user to disable the dock icon, if you don't mind losing the menu bar (the icon will also come back next time you update ted). To remove the icon, you need to:
  • Find the ted in Finder
  • Right click / option click and choose 'Show Package Contents'
  • Open the 'Contents' folder, right client on 'Info.plist' and choose 'Open With' > 'Property List Editor'
  • Expand 'Root', then click the 'New Child' button
  • Call the child 'LSUIElement', set the class to 'String' and the value to '1'
  • Open/restart ted

To turn the icon back on, just go to the same place and either delete the item or set the value to '0'.


Top
 Profile  
 
 Post subject: Re: Ted ignores "Start ted minimized to tray" option on Mac
PostPosted: Tue Nov 09, 2010 12:36 am 
Offline

Joined: Tue Nov 09, 2010 12:13 am
Posts: 3
Thinking about this further, is there any need for these to be separate preferences? Does anyone actually want ted to show in both the system tray and taskbar/dock? Is it required for a particular OS/window manager?


Top
 Profile  
 
 Post subject: Re: Ted ignores "Start ted minimized to tray" option on Mac
PostPosted: Tue Nov 09, 2010 1:02 am 
Offline

Joined: Tue Nov 09, 2010 12:13 am
Posts: 3
Looking at my other Apps, I would like to add the below menus options to the ted system tray on Mac. If I were to write such a patch, would you accept it? Note that this has 3 or 4 new strings - 'ted' (to show main interface), the two 'support ted' strings, and the word Quit (mac apps never say Exit).

ted (shows main interface)
---
Show 1 > submenu to match right click menu
... (repeat for all shows - will need to consider space available)
---
Add show...
Import shows...
Export shows...
Edit all shows...
Check all shows
---
Sort shows > matches existing sub menu
Show log...
---
About
Support ted, buy a DVD
Support ted, donate
Preferences...
---
Quit


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group