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: Sailor Quasar <email@hidden>
- Date: Fri, 20 Feb 2004 14:22:09 -0500
On Feb 20, 2004, at 2:12 PM, Bill Houston 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.
-- Sailor Quasar, guardian of Leraz's memory
"A face of stone may hide a soul with the deepest Love of all"
Email: email@hidden
_______________________________________________
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.