• 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
Problem Instantiating a Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem Instantiating a Nib


  • Subject: Problem Instantiating a Nib
  • From: Bruce Truax <email@hidden>
  • Date: Sun, 09 May 2004 22:24:04 -0400

I use the following code in my MainController to instantiate a NIB in
response to a menu selection.

- (IBAction)rayTrace:(id)sender
{
if ( rayTracePanel==nil){
if (![NSBundle loadNibNamed:@"ACRayTraceController.nib" owner:self])
{
NSLog( @"Load of Ray Trace Panel Failed");
return;
}
}
[[rayTracePanel window] makeKeyAndOrderFront:sender];
}

I set up the nib such the the MainController is the file's owner and I
connect the file's owner 'rayTracePanel' outlet to the panel controller in
the NIB.

At the time I execute the loadNibNamed method I can see in the debugger that
the +initialize function is executed and the immediately after this function
is executed I get the following two messages:

2004-05-09 22:22:19.373 AccosX[4077] *** -[NSConstantString count]: selector
not recognized
2004-05-09 22:22:19.378 AccosX[4077] *** -[NSConstantString count]: selector
not recognized

And the awakeFromNib method is never executed.

I know that I am must be doing something stupid but I cannot figure it out.

Thanks.

Bruce

--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant

Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
_______________________________________________
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.


  • Follow-Ups:
    • Re: Problem Instantiating a Nib
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: NSSplitView addingSubviews
  • Next by Date: Re: Transparency in the application icon?
  • Previous by thread: [OT] Re: Programming
  • Next by thread: Re: Problem Instantiating a Nib
  • Index(es):
    • Date
    • Thread