Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Hiding Applications

Hiding Applications
Thread Tools
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Cairo, Egypt
Status: Offline
Reply With Quote
Aug 12, 2001, 03:16 AM
 
Hello all,
I want to write a function that would hide an application and all its associated widnows. I don't know whether there is a certain API I can use, or if I should create and send an AppleEvent (and if so the with what constants) or what to do exactly. All I want to do is to select the typical "Hide Application_Name" option that you find in the Apple Menu in any application in Mac OS X. I just want to do it through code instead of selecting the menu item myself.
Please Advise......
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 12, 2001, 05:59 AM
 
I think that there is an example of this in the Space dockling project. It's available at http://space.sourceforge.net
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Cairo, Egypt
Status: Offline
Reply With Quote
Aug 12, 2001, 06:32 AM
 
Is there a way to do it in C++?
My code is not in Objective-C.......I need to know what library or manager to use with C++ on Mac OS X.....
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Cairo, Egypt
Status: Offline
Reply With Quote
Aug 13, 2001, 08:25 AM
 
I also want to say that even the common script that is supposed to hide my application doesn't work!!! The script looks like this:
tell application "Finder"
set visible of application "myApp" to false
end tell
I don't know why this doesn't work. I was trying AppleScript because I was thinking of using AETracker to see what kind of events does the script use to hide my application and hence duplicate these sent events. Furthermore, even AETracker doesn't work properly (not with me anyway) when run on Mac OS X.
Is there a way perhaps to chose the Command-H menu item programmatially in Mac OS X?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:24 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2