From 6c0063600d6f37a3970a10d185b99e05fe3fd981 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 7 Dec 2024 14:05:18 -0500 Subject: [PATCH] Update resources for Application project so that it includes a window, a connection to the window and a slightly improved AppController --- .../Application/Resources/AppController.h | 8 ++++++-- .../Application/Resources/AppController.m | 2 +- .../Resources/Main.gorm/data.classes | 1 + .../Application/Resources/Main.gorm/data.info | Bin 184 -> 184 bytes .../Resources/Main.gorm/objects.gorm | Bin 3713 -> 4414 bytes 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Modules/Projects/Application/Resources/AppController.h b/Modules/Projects/Application/Resources/AppController.h index 0e4a702b..f077f0ce 100644 --- a/Modules/Projects/Application/Resources/AppController.h +++ b/Modules/Projects/Application/Resources/AppController.h @@ -17,22 +17,26 @@ @interface AppController : NSObject { + IBOutlet NSWindow *_window; } +// Class methods... + (void) initialize; +// Initialization - (id) init; - (void) dealloc; - - (void) awakeFromNib; +// Notification methods... - (void) applicationDidFinishLaunching: (NSNotification *)aNotif; - (BOOL) applicationShouldTerminate: (id)sender; - (void) applicationWillTerminate: (NSNotification *)aNotif; - (BOOL) application: (NSApplication *)application openFile: (NSString *)fileName; -- (void) showPrefPanel: (id)sender; +// Actions... +- (IBAction) showPrefPanel: (id)sender; @end diff --git a/Modules/Projects/Application/Resources/AppController.m b/Modules/Projects/Application/Resources/AppController.m index 8cf4cb2a..6f6c78db 100644 --- a/Modules/Projects/Application/Resources/AppController.m +++ b/Modules/Projects/Application/Resources/AppController.m @@ -66,7 +66,7 @@ - (BOOL) application: (NSApplication *)application return NO; } -- (void) showPrefPanel: (id)sender +- (IBAction) showPrefPanel: (id)sender { } diff --git a/Modules/Projects/Application/Resources/Main.gorm/data.classes b/Modules/Projects/Application/Resources/Main.gorm/data.classes index ec051bf6..4865c94d 100644 --- a/Modules/Projects/Application/Resources/Main.gorm/data.classes +++ b/Modules/Projects/Application/Resources/Main.gorm/data.classes @@ -5,6 +5,7 @@ "showPrefPanel:" ); Outlets = ( + "_window" ); Super = NSObject; }; diff --git a/Modules/Projects/Application/Resources/Main.gorm/data.info b/Modules/Projects/Application/Resources/Main.gorm/data.info index 6361435985184dad1ce4fad2a0260f7d4bae2045..70a46922b39d56c6923e7127e1efdd8450eeeb95 100644 GIT binary patch delta 12 TcmdnNxPx&*DiaIC#PmP_8YKg_ delta 12 TcmdnNxPx&*Dif2)#PmP_8fyc| diff --git a/Modules/Projects/Application/Resources/Main.gorm/objects.gorm b/Modules/Projects/Application/Resources/Main.gorm/objects.gorm index cb148d6ad92bf25eeb2d97925734e60232a797e8..5db19ae30a8d81b2d3370661da21a80d47c581eb 100644 GIT binary patch literal 4414 zcmbtY>2ecC5T0FGz9d`n2_X&$2m}I{9{EH$z?dN9L^7}#bHmyi+Y8c4tRw{FA|VMm ztG1GV`IRR~jq(b-NFE_?ko4@V*6YYCDvqk`YE2(sA2U5YO6Qg;RaQ>u*6N1whylRb zWO5QxNZ^OgxWsJUC4i7xYR+tLx>m zgM^klXqN!fs+M7{3qi+F_aP*ENAO>F2gwnQEE9v6Bu`4DPP>JIL_mQM?IDqzc9~Vm zB{T1sRfte0_ULHz^k0G^Bzoq6Bu1lWo`bveL=p>~25lQUX@vB9sh_hf{fRI|qogaRHNVQN5gWQ_ zpIDzS6-uI%Ap+fvE>W5RFQWr8qdB6JB4L=*dCY17|18XN8CO>cgC42X>1lO#AomHW zkSgjFp;z)pJpM=rsc+VZoOSFxAnRzgL~2g$JRFE@W8GI_9^nyR>6$gfguQ$rV#jK} ztUnWkS1~tpPWCW^m`B@IovqXvko(_-zA*LMpAG?0+Aj*6Wo8W*6aszH%N`M9SnS0f zHH&8?Ata!`5fN#1*255^G14n_GgVeZMhAho)bH^0JJgK1R)PV!PGpti#3cy%+ZT=v zgETHmnJMb)3=Jw68w^R+e$QmTnsz+aSOE_!%iA#Ah@;?$6pVO+5mzv4JZ5>7B=O)A zQmL&JF_^j4s!=ji9=Z*qjeZ`7T{6ayh&=?m8!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