IBOutlet Connection Problem
IBOutlet Connection Problem
- Subject: IBOutlet Connection Problem
- From: Dave <email@hidden>
- Date: Sat, 05 Sep 2015 14:58:03 +0100
Hi,
I have a subclass of NSWindow and a subclass of NSWindowController:
LTWValidationWindow
LTWValidationWindowController
LTWValidationWindow.xib is loaded from LTWValidationWindowController as so:
-(instancetype) initWithWindowKind:(NSString*) theWindowKind
{
NSString* myNIBName;
myNIBName = @"LTWValidationWindow";
self = [super initWithWindowNibName:myNIBName];
if (self == nil)
return nil;
self.pWindowKind = theWindowKind;
return self;
}
The File’s Owner in the LTWValidationWindow.xib is set to LTWValidationWindowController, the NIB contains a single window has a class of LTWValidationWindow. Which has a Scroll View in it.
In LTWValidationWindowController, I have the following statement:
@property (nonatomic,weak) IBOutlet NSScrollView* pScrollView;
For some reason, when I drag the circle in the margin of the above outlet to the corresponding NSScrollView in the LTWValidationWindow.xib it won’t make the connection. I’ve checked all the classes etc and they are all set ok.
Not sure if this matters, but this *was* working ok before I installed XCode 7 Beta, I’ve since deleted it again and gone back to XCode 6.4 and since then this has started happening.
Anyone have any idea what could be wrong and how to fix it?
Thanks
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden