• 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
partly connected nibs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Carbon vs Cocoa arguments
  • Next by Date: Re: why mouseMoved doesn't work...
  • Previous by thread: Re: Cocoa & C++ Protected Member Functions
  • Next by thread: NSMatrix with radio buttons - problem detecting states
  • Index(es):
    • Date
    • Thread