partly connected nibs?
partly connected nibs?
- Subject: partly connected nibs?
- From: Steve Mykytyn <email@hidden>
- Date: Thu, 10 Oct 2002 22:19:07 -0700
why would only some elements of a nib get connected when loading - when
i'm sure that i've got the file owner class correctly read into the
nibs, and have quadruple checked the connections? i'm using a tabbed
main window, and loading secondary nibs after the main document nib
loads as follows:
(void)windowControllerDidLoadNib:(NSWindowController *) aController {
[super windowControllerDidLoadNib:aController];
if ( [NSBundle loadNibNamed:@"XMAddinStyle" owner:self] ) {
NSView* view = styleViewAddin;
NSRect frame = [theMainTabView contentRect];
NSTabViewItem* tab = [theMainTabView tabViewItemAtIndex:3];
[view setFrame:frame];
[tab setView:view];
}
the trouble is, not all of the outlets and actions in XMAddinStyle get
connected. There are NSColorWells that connect correctly,
NSTableViews, the view itself (styleViewAddin), an NSStepper inbound,
but i have an NSTextField where the outlet is set to null, although the
action coming back works just fine!
in fact,
IBOutlet NSTextField *styleLineWidthTextField
is nil as soon as i get back from loadNibNamed above...
Any suggestions on what to look for would be greatly appreciated - i've
looked at the ascii version of the nib using nibtool, and didn't see
anything obvious there... nor did scanning the docs or archives help
much... I also went made another version of the nib from scratch - got
essentially the same problem.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.