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.nore...@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 _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gnustep