[MacRuby-devel] MacRuby on Mavericks

Robert Carl Rice rice.audio at pobox.com
Sun Nov 10 13:03:40 PST 2013


Hi Rob,

One other comment on your example.

I see that you have subclassed NSWindowController in your AppDelegate. That is good for the window to be restorable. However, NSWindowController will define it's own window property as an IBOutlet so you don't want to override that with your own window IBOutlet.

Bob Rice


On Nov 10, 2013, at 4:19 AM, rob ista <rob.ista at me.com> wrote:

> Isn’t it enough to have a Class.h file as company of the Ruby.rb file like:
> //  AppDelegate.h
> 
> #import <Foundation/Foundation.h>
> 
> @interface AppDelegate : NSWindowController {
> 
> IBOutlet NSWindow       *window;
> IBOutlet NSButton       *homeButton;
> . . . etc etc
> }
> 
> - (IBAction)loadStore:(id)sender;
> - (IBAction)sortContacts:(id)sender;
> . . . etc etc
>     
> @end
> 
> 
> At least the IB is triggered by this but I admit i still don't have a big app running on Mavericks :)
> 
> cheers, Rob
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20131110/7c223f80/attachment.html>


More information about the MacRuby-devel mailing list