Hi there,
I've been doing a bit of Cocoa and not doing too badly, having completed Aaron Hillegass' book a while back and successfully done a few other bits and bobs as far as Cocoa Apps are concerned.
I now find myself wanting to make a preference panel, which isn't covered in the book. I've looked at Apple's documentation on implementing a preference panel, but I think it must be geared to XCode 2, which I've never used and I can't seem to translate its guidance to XCode 3.
The panel is supposed to just read and write to a plist in /Library/Preferences/ which I created as a model for a Ruby command line utility, which does some backend stuff with CUPS.
I added 3 IB Outlets to the preferences subclass:
Code:
#import <PreferencePanes/PreferencePanes.h>
@interface WopolPref : NSPreferencePane
{
IBOutlet NSTextField *broadcastIP;
IBOutlet NSTableView *printerSpec;
IBOutlet NSTableView *serverSpec;
}
- (void) mainViewDidLoad;
@end
When I try to associate the class with an NSObject in IB, I don't get these outlets. Instead I see
_firstKeyView
_secondKeyView...
and some more stuff like that. Where am I going wrong?
If you can warn me about any other possible traps I might fall into then please tell me.
Thanks all.