Re: Pointing in the right direction for an XCode 3 pref pane.
Re: Pointing in the right direction for an XCode 3 pref pane.
- Subject: Re: Pointing in the right direction for an XCode 3 pref pane.
- From: Adam Penny <email@hidden>
- Date: Mon, 20 Oct 2008 10:21:39 +0200
Hi Nick,
Yes, I've tried that and it gave me the little '+' symbol in green,
which is always a good sign, but it proceed to do nothing.
Here's my header file, just in case that's where the problem lies:
#import <PreferencePanes/PreferencePanes.h>
@interface WopolPref : NSPreferencePane
{
IBOutlet NSTextField *broadcastIP;
IBOutlet NSTableView *printerSpec;
IBOutlet NSTableView *serverSpec;
}
- (void) mainViewDidLoad;
@end
I understand from Apple's docs on the subject that I'll also need an
initWithBundle action as well, but I got the impression that this was
enough just to get the outlets hooked up with IB.
Thanks again,
Adam
On Oct20, 2008, at 1:59 AM, Nick Zitzmann wrote:
On Oct 19, 2008, at 9:33 AM, Adam Penny wrote:
Having constructed a preference subclass with the appropiate
outlets corresponding to those I've placed in the nib file, I'm
getting an NSObject and setting it's class to the preference pane
subclass with my outlets in it, but this seems to be giving me an
unexpected choice of outlets when I'm trying to connect them. I
was hoping to see the outlets broadcastIP, printers and servers.
Instead I see _FirstKeyView, _InitialKeyView, _LastKeyView window
and New Referencing Outlet. Am I supposed to use something other
than an NSObject when it's a preference pane in order to make
connections?
Have you tried manually loading the header into IB by dragging the
file onto the nib window? IB is supposed to automatically loads
headers, but sometimes it doesn't.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden