On 21 May '08, at 5:07 PM, Matthew Youney wrote:
The name of the controller object in interface builder is myPOSsocketController, and the following gives the compiler error "myPOSsocketController undeclared or first use in function"
If you want an object in a nib to know about another one, then modify its class to add an instance variable declared as an IBOutlet:
@interface POSocket { ... IBOutlet POSocketController myController;Save the .h file and IB will now know about that outlet, and you can control-drag from the POSocket to the controller and assign the myController instance variable.
Typically what happens is that you have a controller object (often an NSWindowController) that's the nib's owner, and you add outlets to it for all the other nib objects you need to reference directly. It's rarer for other objects in the nib to have outlets pointing to each other, but it happens sometimes.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]