Re: Can't load nib!
Re: Can't load nib!
- Subject: Re: Can't load nib!
- From: Steve Christensen <email@hidden>
- Date: Sat, 16 Aug 2008 20:35:54 -0700
On Aug 15, 2008, at 2:32 PM, David Yamnitsky wrote:
I'm trying load a .nib file for custom parameter UI, but the simple
call, [NSBundle loadNibNamed:@"TheNibFile" owner:self]; fails (where
self is effect). I've tried building the ScrollingRichText example,
and custom UI for it doesn't load in Motion but does in FCP. In my
testing, in both hosts +[NSBundle bundleForClass:[self class]]
returns the main bundle!
What's going on here??
I use the following, which works just fine for me. This is called from
the class set to be the nib file's owner.
if ([[NSBundle bundleForClass:[self class]] loadNibFile:@"MyNib"
externalNameTable:[NSDictionary dictionaryWithObject:self
forKey:NSNibOwner]
withZone:nil])
{
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden