Dan Wood is co-owner of Karelia Software, creating programs for the Macintosh computer. He is the father of two kids, lives in the Bay Area of California USA, and prefers bicycles to cars. This site is his weblog, which mostly covers geeky topics like Macs and Mac Programming.
Useful Tidbits and Egotistical Musings from Dan Wood
Categories: Mac OS X · Cocoa Programming · General · All Categories
permanent link
· Topic/Cocoa
|
I thought I'd point out a user interface conundrum we're experiencing with Sandvox. We have an inspector NSPanel, which is a floating "utility window." These kinds of windows hide when the application is not the frontmost program. (I don't believe there is any way to prevent a floating panel like this from hiding on program deactivate.)
One thing that we want to inspect is images. Besides just showing an image, we want the user to be able to drag in an image from, say, Finder or iPhoto. But to drag from another program, you need to deactivate Sandvox, which makes the potential destination go away.
It seems we have few options:
Any other ideas or suggestions? Answer in the comments please...
Update: OK, thanks Ken, sometimes the solution is staring you in the face. <forehead-slap />
Update2 :Still haven't come up with an ideal solution. Making the panel float, but not hide on deactivate, means that the panel will be frontmost even while you are in other applications. Yuck. It would be nice to have a layer of "float above other application windows, but stick with the application layer" but it looks like that's not how window layers work. So for now, it's probably better to just hide the window on deactivate. It will make D&D into the inspector harder, but that's the breaks!