Using Interface Categories vs Interface Builder
Using Interface Categories vs Interface Builder
- Subject: Using Interface Categories vs Interface Builder
- From: "Frederick C. Lee" <email@hidden>
- Date: Tue, 25 May 2004 10:46:50 -0700
Greetings:
I've tried to emulate Bill Cheeseman's Cocoa Recipes for the Mac OS
X's Vermont Recipes code by dividing myMainController into
'controller-ettes'. That is, having the controller divided into
categories that share the same header file, yet with their separate
implementation (*.m) files.
It seemed to be a clever idea at the time. XCode compiled it with no
problems. However, at runtime the GUI failed to 'connect' with the
Actions declared in the category(-ies). The actions declared within
the MAIN category (MyWindowController) work as predicted. I've tried
creating a test button and placing the declaration in a category, then
the main. And only the main interface works. Sigh, so the only
solution seems to merge all the categories into the main; which is
one-step backwards in software modularity.
1) Question: Is this a bug in XCode or an idiosyncrasy of Panther+
OSes; ... or am I missing something?
Regards,
Ric.
#pragma mark CountryController
@interface MyWindowController (CountryController)
- (IBAction)addCity:(id)sender;
- (IBAction)countryList:(id)sender;
- (IBAction)removeCity:(id)sender;
- (IBAction)getGMT:(id)sender;
@end
2004-05-25 10:41:11.084 docCountries[2210] MyDocument.init method.
2004-05-25 10:41:11.097 docCountries[2210] Inside MyWindowController.m
init.
2004-05-25 10:41:11.099 docCountries[2210] Inside makeWindowControllers.
2004-05-25 10:41:11.372 docCountries[2210] Could not connect the action
getGMT: to target of class MyWindowController
2004-05-25 10:41:11.427 docCountries[2210] Could not connect the action
addCity: to target of class MyWindowController
2004-05-25 10:41:11.440 docCountries[2210] Could not connect the action
removeCity: to target of class MyWindowController
2004-05-25 10:41:11.454 docCountries[2210] Could not connect the action
countryList: to target of class MyWindowController
2004-05-25 10:41:11.470 docCountries[2210] Inside awakeFromNib.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.