Re: Loading a .nib?
Re: Loading a .nib?
- Subject: Re: Loading a .nib?
- From: Michael Vannorsdel <email@hidden>
- Date: Fri, 2 May 2008 17:31:32 -0600
You can convert this to the C equivalent if you absolutely must use C
(off the top of my head):
Class mclass = objc_getMetaClass("NSBundle");
SEL s = @selector(loadNibNamed:owner:);
IMP f = class_getMethodImplementation(mclass, s);
BOOL res = f(mclass, s, @"SettingsDialog", self);
On May 2, 2008, at 4:38 PM, J. Todd Slack wrote:
Yeah, I am using:
[NSBundle loadNibNamed:@"SettingsDialog" owner:self;]
But that is Objective-C, I need to do it from a .c file.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden