• 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
Re: Pointing in the right direction for an XCode 3 pref pane.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Pointing in the right direction for an XCode 3 pref pane. (From: Adam Penny <email@hidden>)
 >Re: Pointing in the right direction for an XCode 3 pref pane. (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: [ANN] InputMethodKit backporting component for OS X 10.4 Tiger
  • Next by Date: Re: what do you use to make icons and similar?
  • Previous by thread: Re: Pointing in the right direction for an XCode 3 pref pane.
  • Next by thread: Re: Pointing in the right direction for an XCode 3 pref pane.
  • Index(es):
    • Date
    • Thread