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 > Getting Windowshade to work

Getting Windowshade to work
Thread Tools
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
May 8, 2001, 12:46 AM
 
Well, enough people want it, so why not figure out a way to make it work? Well, apple was kind enough to release applescript example on how to do it in the finder. Here are my questions, and if answered in the way I expect, then windowshading any app, the finder and beyond, can have windowshade.

1. Are global hotkeys implemented yet? I'm not sure how to redirect minimize commands, but using a global hotkey to invoke windowshade would work for now... if they're implemented.

2. Is it possible to find the frontmost app / frontmost window. This seems pretty easy, but does anyone have an eloquent way of doing this in objective-C?

I think that's it. I'm not sure if there is anything else really to do.

Hope that gets people with far better Obj-C/Developing skills on this, cause it would be nice to have/quiet those who complain about not having it.

F-bacher
     
Junior Member
Join Date: Apr 2001
Location: Sunnyvale, CA
Status: Offline
Reply With Quote
May 8, 2001, 02:09 AM
 
I don't think it's that simple.

The window shading script works because window resizing is scriptable in the Finder. It only shows that window shading could be supported in individual applications. System wide window shading is an entirely different story, as it needs to be supported by the window server (or some other component of the OS), and is thus out of ordinary developers' hands.
     
Mac Enthusiast
Join Date: Oct 1999
Location: Brooklyn, NY, USA
Status: Offline
Reply With Quote
May 10, 2001, 11:07 AM
 
Personally, I don't miss WindowShade, since the minimize-to-dock feature suits my needs. Of course, I don't have a bunch of stuff minimized at any given time, and I could see how that would be a pain.

At any rate, far be it from me to stand in the way of someone's hacking

My suggestion for you is to look into implementing it as a service. If you can manage to pass something like NSWindow as a valid send/return object, that should work. Otherwise, I dunno- the pasteboard doesn't seem to have its window as an attribute, but Aqua has to know (to know where to return it to), so it may be exposed somewhere.

Good luck.
     
   
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 10:01 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