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.i...@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
> 

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macruby-devel

Reply via email to