Skip navigation.
 
mlRe: Mac OS X version 10.5 or later is required for zerocost-exceptions???
FROM : Jurgen Vermeiren
DATE : Thu Feb 07 23:13:16 2008

It's good to know that it's a 64 bit only issue. The error does disappear
if I set i386 instead. I must say that having my x86_64 build working only
in Leopard is not too much of a problem for me. It's rather intriguing
because the code does nothing extraordinary, as you can judge by yourself:

- (void) logMsg :(NSString*)msg critical:(Boolean)critical
{
   NSDictionary* attr;

   if( critical )
       attr = [NSDictionary dictionaryWithObject :[NSColor redColor]
forKey:NSForegroundColorAttributeName];
   else
       attr = [NSDictionary dictionaryWithObject :[NSColor blackColor]
forKey:NSForegroundColorAttributeName];

   @synchronized(self)
   {
       NSTextStorage* text = [logView textStorage];
       unsigned len = [[text string] length];
       unsigned msglen = [msg length];

       [text replaceCharactersInRange :NSMakeRange( len, 0 ) withString:msg];
       [text setAttributes :attr range:NSMakeRange( len, msglen )];

       [logView scrollRangeToVisible :NSMakeRange( len + msglen, 0 )];
   }
}


> On Feb 7, 2008, at 12:57 PM, Jurgen Vermeiren wrote:

>> This strange error message has appeared before the closing brace of a
>> synchronized statement when I switched the deployment target to
>> Tiger in
>> my project settings.
>>
>> The block may be empty, the error won't go. I have a similar
>> synchronized
>> block elsewhere in another method but XCode does not complain about
>> that
>> one. So what's wrong?

>
> To answer the question in your subject line, yes -- 10.5 or later is
> required to take advantage of "zero cost" Objective-C exceptions.
> They are also a 64 bit only issue.
>
> As some other responder said, to answer the question posed above will
> require some code or more context.
>
> b.bum
>
>

Related mailsAuthorDate
mlMac OS X version 10.5 or later is required for zerocost-exceptions??? Jurgen Vermeiren Feb 7, 21:57
mlRe: Mac OS X version 10.5 or later is required for zerocost-exceptions??? Kyle Sluder Feb 7, 22:05
mlRe: Mac OS X version 10.5 or later is required for zerocost-exceptions??? Bill Bumgarner Feb 7, 22:13
mlRe: Mac OS X version 10.5 or later is required for zerocost-exceptions??? Jurgen Vermeiren Feb 7, 23:13
mlRe: Mac OS X version 10.5 or later is required for zerocost-exceptions??? Nick Zitzmann Feb 7, 23:35