Re: How to load a nib from a path
Re: How to load a nib from a path
- Subject: Re: How to load a nib from a path
- From: j o a r <email@hidden>
- Date: Fri, 20 Feb 2004 21:34:16 +0100
Harness the power of the mailing list archives! For example this post:
http://cocoa.mamasam.com/COCOADEV/2002/04/1/30272.php
j o a r
On 2004-02-20, at 20.22, Sailor Quasar wrote:
>
> One last question about loadNibFile.
>
> When I use:
>
> [frameworksBundle loadNibNamed:@"EULA_UI" owner:self])
>
> I can get the window object like this:
>
> window = [[[NSApp keyWindow] windowController] window];
>
> However when I load the nib with loadNibFile, I can't get the window
>
> (I get
>
> null).
>
> I assume this has something to do with the externalNameTable or zone,
>
> but I
>
> don't know how these should be setup to make this work, and I am on a
>
> very
>
> tight deadline.
>
>
Ouch, that one I don't know about. In the code I posted, I set up the
>
externalNameTable as documented by the header/reference docs, and the
>
zone should be effectively irrelevant, but there may be gotchas I
>
don't know about since Apple says you're not supposed to use
>
-loadNibFile despite its being clearly there (last time I asked, I was
>
told there was no reason to use it over +loadNibNamed). Therefore I'm
>
posting this reply back onto the list to see if someone there can
>
answer.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.