Disable menu-items in dockbar
Disable menu-items in dockbar
- Subject: Disable menu-items in dockbar
- From: Ruben Smits <email@hidden>
- Date: Tue, 27 Jan 2004 10:00:39 +0100
Hi,
How do I disable the Quit menu-item in the dockbar menu of my
application?
When a modal window is in front in my application, the Quit-menu item
in the application menu is disabled using the validateMenuItem, but
this has no effect on the dockbar menu.
Is there an other way to provide feedback when user selects Quit in the
dockbar menu? When a modal window is in front, the
applicationShouldTerminate method is not reached.
-----------
Ruben
-----------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
- Prev by Date:
Rép : [APP IDEA] Desktop Background Scripting Hello, GeekTool does the four points youare exposing :-) (http://projects.tynsoe.org/geektool/) You can use shell script to replace applescripts you talked about, and you can use osascript command in shell script to execute applescripts. By the way, I don't know if this is the right place to discuss those kind of things :-) Le 25 janv. 04, à 05:19, Nebagakid a écrit : I have posted this in many places: The App would be a way to script the background picture to show information: 1. Display a stock price with a background color to correspond if the stock went up (green) or down (red). 2. Show the current iTunes song with album artwork. 3. Maybe change the desktop picture (or color) depending on the time of day. 4. Download images from a gallery and show them on the desktop. It is sort of like Konfabulator for just the Desktop Background. It is easier, though, because there would be no need to design a GUI. Maybe it could use CSS and XML to arrange stuff? I am not a programmer, but I am an idea person, and I would love to see this idea come to life. So, now, I guess I have some more ideas, graphically. Because, right now, you have another app coming that would compete against Konfabulator, by Panic named Stattoo. So, you could script it to do some basic transitions for when information changes. Like, you could have it do a wipe or a dissolve. You can have objects spin. The text would be anti-aliased, so it would look really great. There would be universal variables that would be standard, such as background (color or transparent), and the name of the "scriptlet." You would start out by writing a script. The most basic thing would be a simple applescript that would be like "set thisVariable to "hello" and then you would have specify some CSS code to say where you would want it. So "#thisVariable" would be made to be centered along the desktop, of course you would say what font-family, font-size, and color you want. then write "set desktop to rgb(0,0,0) And then, when the thing is run, you will see "hello" on a desktop centered. From there, the limits are endless, just like the number of konfabulator widgets. But (BUT!) this program is free for any developer who makes a good script. Is anyone else interested in this? I would like to get this made :) -DCohen < http://dco1.com/ > _______________________________________________ cocoa-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev Do not post admin requests to the list. They will be ignored. -- Yann Bizeul - yann at tynsoe.org http://projects.tynsoe.org/
- Next by Date:
Re: Memory Leak with NSMutable String
- Previous by thread:
Rép : [APP IDEA] Desktop Background Scripting Hello, GeekTool does the four points youare exposing :-) (http://projects.tynsoe.org/geektool/) You can use shell script to replace applescripts you talked about, and you can use osascript command in shell script to execute applescripts. By the way, I don't know if this is the right place to discuss those kind of things :-) Le 25 janv. 04, à 05:19, Nebagakid a écrit : I have posted this in many places: The App would be a way to script the background picture to show information: 1. Display a stock price with a background color to correspond if the stock went up (green) or down (red). 2. Show the current iTunes song with album artwork. 3. Maybe change the desktop picture (or color) depending on the time of day. 4. Download images from a gallery and show them on the desktop. It is sort of like Konfabulator for just the Desktop Background. It is easier, though, because there would be no need to design a GUI. Maybe it could use CSS and XML to arrange stuff? I am not a programmer, but I am an idea person, and I would love to see this idea come to life. So, now, I guess I have some more ideas, graphically. Because, right now, you have another app coming that would compete against Konfabulator, by Panic named Stattoo. So, you could script it to do some basic transitions for when information changes. Like, you could have it do a wipe or a dissolve. You can have objects spin. The text would be anti-aliased, so it would look really great. There would be universal variables that would be standard, such as background (color or transparent), and the name of the "scriptlet." You would start out by writing a script. The most basic thing would be a simple applescript that would be like "set thisVariable to "hello" and then you would have specify some CSS code to say where you would want it. So "#thisVariable" would be made to be centered along the desktop, of course you would say what font-family, font-size, and color you want. then write "set desktop to rgb(0,0,0) And then, when the thing is run, you will see "hello" on a desktop centered. From there, the limits are endless, just like the number of konfabulator widgets. But (BUT!) this program is free for any developer who makes a good script. Is anyone else interested in this? I would like to get this made :) -DCohen < http://dco1.com/ > _______________________________________________ cocoa-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev Do not post admin requests to the list. They will be ignored. -- Yann Bizeul - yann at tynsoe.org http://projects.tynsoe.org/
- Next by thread:
Rép : [APP IDEA] Desktop Background Scripting (Modifié par Yann Bizeul)
- Index(es):