discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load localized gorm file in framework


From: Fred Kiefer
Subject: Re: Load localized gorm file in framework
Date: Sat, 21 Apr 2007 13:20:59 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20060911)

Yen-Ju Chen wrote:
> I have a framework containing localized gorm file,
> say English.lproj/UI.gorm.
> Everything is installed correctly (English.lproj is under Resources/
> of framework).
> How does a class in that framework load localized gorm file ?
> [NSBundle loadNibNamed:owner:] seems not working.
> I cannot find a method in NSBundle to do so.
> The only way I can think about is to first find the bundle,
> then find the gorm file as resource, then load it.
> It does not seem to be the right way to do it
> considering frameworks should be easier to use.
> 
Either use
- (BOOL) loadNibFile: (NSString*)fileName
   externalNameTable: (NSDictionary*)context
            withZone: (NSZone*)zone
Or use pathForNibResource: to get the actual NIB file name.
loadNibNamed:owner: does not look for language specific versions of the
file. If this behaviour is different from what Apple does, please file a
bug report and we will fix it in GNUstep.

Cheers,
Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]