Re: [MacRuby-devel] MacRuby doesn't find kCGDesktopIconWindowLevel

2010-04-24 Thread Laurent Sansonetti
Hi, Looking at the CGWindowLevel.h header of the CoreGraphics framework: enum { kCGBaseWindowLevelKey = 0, ... kCGDesktopIconWindowLevelKey, ... #define kCGDesktopIconWindowLevel \ CGWindowLevelForKey(kCGDesktopIconWindowLevelKey) $ ./miniruby -e "fra

Re: [MacRuby-devel] MacRuby doesn't find kCGDesktopIconWindowLevel

2010-04-24 Thread Michel Steuwer
Hi, I didn't find out how to use the kCGDesktopWindowLevel directly, but you can use the kCGDesktopWindowLevelKey constant if you use a capital K at the beginning. So the call: window.setLevel(CGWindowLevelForKey(KCGDesktopWindowLevelKey)) works. I looked at the CoreGraphics.bridgesupport in

Re: [MacRuby-devel] MacRuby doesn't find kCGDesktopIconWindowLevel

2010-04-24 Thread Geoff Garside
I've not been able to generate a Bridge Support file for the AppKit.framework on my machine, but if you can then you can load the framework and then load the bridge support file and you should get access to those constants, I believe the k changes to K though. The alternative would be to define

Re: [MacRuby-devel] MacRuby doesn't find kCGDesktopIconWindowLevel

2010-04-24 Thread robert gleeson
Hey, In Ruby, constants are identified by a capital letter at the beginning of its name, and that is why a NameError exception is raised. If this Objective-C constant is available to you, I don't think it would be available as a local variable in MacRuby. Maybe MacRuby encapsulates this data i

[MacRuby-devel] MacRuby doesn't find kCGDesktopIconWindowLevel

2010-04-24 Thread Michel Steuwer
Hello everybody, i'm new to MacRuby and currently trying my first Project. I try to draw a NSPanel at the desktop window level. Therefore, i would use the [window setLevel:kCGDesktopIconWindowLevel] method in Objective-C. In MacRuby the call window.setLevel(kCGDesktopIconWindowLevel) doesn't wor