bug-gnustep
[Top][All Lists]
Advanced

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

Re: [bug #36764] GUI does not currently support loading with standard lo


From: Gregory Casamento
Subject: Re: [bug #36764] GUI does not currently support loading with standard localized directories...
Date: Sat, 21 Jul 2012 09:59:20 -0400

Fred,

Just a bit about the model loading process...

Currently there is something like this implemented already.  When I
designed the model loading system I made it so that you could add
model loading classes via frameworks or libraries (e.g. Renaissance...
although this never happened).   There is a class method called
"+priority" which defines the priority that each model type should be
considered in.

Later, GC

On Sat, Jul 21, 2012 at 9:02 AM, Fred Kiefer <INVALID.NOREPLY@gnu.org> wrote:
> Follow-up Comment #5, bug #36764 (project gnustep):
>
> I checked again in the base implemenation and this still returns the
> non-localized paths in preference of the localized ones. And this is even
> required by the specification from Apple.
> This means we still need a specific implementation in gui, but this could be
> simplified a lot and would in that process support the new localisation
> names.
>
> I think what we need to do is add a method to GSModelLoaderFactory to get the
> different extensions (.gorm, .nib and .xib) for NIB files in priority order.
> Then in pathForNibResource: we would loop over these extensions and for each
> call [NSBundle pathsForResourcesOfType:inDirectory:] with a nil subPath. Next
> we loop over the result path and check whether they are for the right file
> name, but skip over the the non-localized ones. Or rather set a local variable
> to each matching path, but only break out of the loop for localized paths.
> When we find a matching path we break out of the file extension loop as well.
>
> Not the most efficient way to implement this, but at the moment I don't see a
> better method using the base mechanism.
>
>     _______________________________________________________
>
> Reply to this item at:
>
>   <http://savannah.gnu.org/bugs/?36764>
>
> _______________________________________________
>   Nachricht gesendet von/durch Savannah
>   http://savannah.gnu.org/
>



-- 
Gregory Casamento
Open Logic Corporation, Principal Consultant
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell)
http://www.gnustep.org
http://heronsperch.blogspot.com



reply via email to

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