On 16.10.2012 12:14, Riccardo Mottola wrote:
Hi,
for what I know, you are responsible to allocate your own autorelease
pool, if you just extend main(). (Take an example in the "tool" template
of ProjectCenter.
Only if you extend NSApp you will get one allocated for you.
Riccardo
Hi,
fair enough! I just need to make it work without one, since I can't
modify buggy proprietary OS X apps.
I can include a "default" release pool in my translation layer, but the
loop back into NSBundle that results in an exception should be fixed anyway.
Do you think the attached patch would be acceptable?
--
Luboš Doležel
--- gnustep-base-1.24.0/Source/NSBundle.m.orig 2012-10-16 12:15:55.257571946
+0200
+++ gnustep-base-1.24.0/Source/NSBundle.m 2012-10-16 12:17:07.335022132
+0200
@@ -2254,7 +2254,7 @@
table = [_localizations objectForKey: tableName];
}
- if (table == nil)
+ if (table == nil && _emptyTable != nil)
{
NSString *tablePath;
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev