ttt1107
November 10, 2009, 1:15am
#1
How do you tell a window to be on top of other windows. Like in applescript studio you did this:
tell window “mainwin”
set floating to true
end tell
Also how do you set a window’s alpha value? In ASStudio you would do this
set alpha value of window win_1 to 50
Furthermore how would you set a windows title using script?
Check out the setLevel_ method.
You don’t; you set the alpha of it’s content view, usually in IB.
Use setTitle_.
Richard
November 10, 2009, 10:09am
#3
setTitleWithRepresentedFilename_ might also interest you, make sure it’s coerced as a POSIX file.
ttt1107
November 10, 2009, 11:05pm
#4
Well in ASStudio I was able to change the alpha value of windows to make them fade or to just change it for user preference using the exact line I used above.
Richard
November 10, 2009, 11:31pm
#5
And nobody bothered to search? XD me neither!
NSWindow… never would have guessed.
ttt1107
November 11, 2009, 6:50am
#6
How would your write that if the window is:
property mainwin : missing value
Richard
November 11, 2009, 2:25pm
#7
mainwin’s setAlphaValue_(0.7) --good example