[MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
Hi For the preferences, I've created a second XIB. However, when the corresponding controller is instantiated, the window does appear but does not gain focus. Any idea what I'm doing wrong here? preferences_controller.rb: class PreferencesController < NSWindowController def windowNibNam

Re: [MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
Hi Franco Thanks for the quick reply. However, I get this if I try your hint: undefined method `center' for #http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
Forgot to mention that I've tried preferences.windows.center() already, however, preferences.window is nil and therefore the center method call kabooms. (If I check the "visible at launch", the window shows and window is still nil - eventhough the delegate appears to be hooked up okay.) By the

Re: [MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
On Mar 1, 2011, at 9:37 PM, Scott Rybe wrote: > Is the window hooked up to its controller? (Which is probably first > responder?) Well, I've dragged the window outlet of the delegate "Preferences Controller" onto the window object and changed the File's Owner class to PreferencesController. ___

Re: [MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
Turns out that it works if I hook the window outlet to File's Owner instead of the Preferences Controller delegate. (The amount of at first sight reasonnable ways to do things can be confusing at times.) Thanks for your hints! -sven ___ MacRuby-deve

Re: [MacRuby-devel] Focus window from second XIB

2011-03-01 Thread Sven Schwyn
> If the file's owner is the controller, you should not be adding a controller > object to the nib, because then you will wind up with two of them. Makes sense. And reading a little on File's Owner, it seems to be the right choice - at least for other than the MainMenu.xib. Setting up a separat

Re: [MacRuby-devel] Note of warning about Xcode 4

2011-03-10 Thread Sven Schwyn
Hi Referring to Vincent's recent post: > - But the biggest problem is that currently there is no MacRuby support in > the interface editor: the actions and properties added in the Ruby code won't > appear in the interface editor. I've never had this kind of trouble not with the later betas nor

Re: [MacRuby-devel] Note of warning about Xcode 4

2011-03-10 Thread Sven Schwyn
Hi Laurent > What Vincent is referring to is the Xcode 3 feature where IB would > automatically reveal the outlets and actions written in Ruby. This is not > working in Xcode 4, and may be the reason why you want to stick to Xcode 3. Well, it works for me. At least if by "reveal the outlets and

Re: [MacRuby-devel] Note of warning about Xcode 4

2011-03-11 Thread Sven Schwyn
Hi I'm on OS X 10.6.6 with MacRuby 0.9 installed via RVM on a older i386 MacBookPro2,2. Check out this screenshot: http://www.delirium.ch/test/connections.png Due to the lack of templates, I've created the project in Xcode 3 and then worked with it in Xcode 4 - which worked just fine in the las

[MacRuby-devel] Syntax Coloring

2011-03-16 Thread Sven Schwyn
Hi fellas I guess we can agree that Ruby syntax coloring has been kinda poor on Xcode 3. Does anybody know whether anything has changed under the hood of Xcode 4? I'm thinking for instance of regular expression support. Cheers, -sven ___ MacRuby-deve