• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using Interface Categories vs Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Using Interface Categories vs Interface Builder <-- *never mind!*
  • Next by Date: Re: Code completion of member functions / attributes?
  • Previous by thread: Using Interface Categories vs Interface Builder <-- *never mind!*
  • Next by thread: Disabling prefix headers on per-file basis
  • Index(es):
    • Date
    • Thread