From: Ben Giddings Date: 2006-01-11T09:52:29+09:00 Subject: Re: Advanced rubycocoa: full-screen applications? (Can I access CoreGraphics calls?) Hi Fujimoto-san and Kimura-san, Thanks to your help, I was able to get my application to go full- screen with no menubar or dock visible. I think the problem I was having was that I was trying to write a Ruby program that used Cocoa libraries. I was using all the right calls, but I couldn't get rid of the menubar or dock. I used TMPresents as an example, and changed how I was doing things. Instead of a Ruby application, I made it an objective C application that used Ruby classes. Once I did that, I was able to go full-screen. However, I'm having another problem. My application is crashing, and the error is somewhere in the Ruby libraries, not directly in my code. Here's the program output: 2006-01-10 03:31:04.506 NRFApp[918] NRFView(0x60dba0) - NSView not correctly initialized. Did you forget to call super? 2006-01-10 03:31:04.531 NRFApp[918] QCView(0x60e870) - NSView not correctly initialized. Did you forget to call super? /Users/merc/Documents/Development/thingmagic/NRFApp/build/Development/ NRFApp.app/Contents/Frameworks/RubyCocoa.framework/Versions/A/ Resources/ruby/osx/objc/oc_wrapper.rb:17: [BUG] Bus Error ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0] NRFApp has exited due to signal 6 (SIGABRT). Another run went like this: [Session started at 2006-01-10 03:31:42 -0500.] Current time is: Tue Jan 10 03:31:42 2006 2006-01-10 03:31:42.993 NRFApp[932] NRFView(0x60daf0) - NSView not correctly initialized. Did you forget to call super? 2006-01-10 03:31:43.063 NRFApp[932] QCView(0x60e7c0) - NSView not correctly initialized. Did you forget to call super? /Users/merc/Documents/Development/thingmagic/NRFApp/build/Development/ NRFApp.app/Contents/Frameworks/RubyCocoa.framework/Versions/A/ Resources/ruby/osx/objc/oc_wrapper.rb:17: [BUG] Segmentation fault ruby 1.8.2 (2004-12-25) [powerpc-darwin8.2.0] I've tried to debug the program using the XCode debugger (GDB underneath) but I only get assembly output. I guess the problem is that something, either Ruby or the RubyCocoa libs were built without debugging symbols, or stripped. Unfortunately, I can't seem to rebuild these properly to get debugging symbols, so I'm unable to debug what's happening. Can anybody help me understand how to debug and fix this problem? If I can't get it working with RubyCocoa soon, I might have to give up and write it in Objective-C (and I don't know Objective C! Thanks, Ben