Nat! bio photo

Nat!

Senior Mull.

Twitter RSS

Github

Betcha can't debug that #2

The last betcha can't debug that was probably too hard, because noone offered an answer. As there is no gain without pain, the answer to that betcha will remain elusive forever. To compensate you for my cruelty, I made this one even harder! But there will be a solution eventually.

FrameworkRosettaFuckup.zip

Expected output with Native Architecture:

-[NSString(URLFix) standardizedURLPath]
Expected output with ppc under Rosetta:
2010-10-22 01:02:05.649 FrameworkRosettaFuckup[52810:903] *** __NSAutoreleaseNoPool(): Object 0x2078e0 of class NSCFArray autoreleased with no pool in place - just leaking
2010-10-22 01:02:05.672 FrameworkRosettaFuckup[52810:903] *** __NSAutoreleaseNoPool(): Object 0x20be10 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-22 01:02:05.676 FrameworkRosettaFuckup[52810:903] *** __NSAutoreleaseNoPool(): Object 0xa08acb9c of class NSCFString autoreleased with no pool in place - just leaking
2010-10-22 01:02:05.680 FrameworkRosettaFuckup[52810:903] *** __NSAutoreleaseNoPool(): Object 0x20be10 of class NSCFString autoreleased with no pool in place - just leaking
2010-10-22 01:02:05.683 FrameworkRosettaFuckup[52810:903] *** __NSAutoreleaseNoPool(): Object 0xa08acb9c of class NSCFString autoreleased with no pool in place - just leaking

Here's the Framework source:

NSString+URLFix.h
//  Coded by Nat! on 21.10.10, Mulle KybernetiK
#import 


@interface NSString( URLFix)

- (NSString *) standardizedURLPath;

@end

NSString+URLFix.m
//  Coded by Nat! on 21.10.10, Mulle KybernetiK
#import "NSString+URLFix.h"


@implementation NSString( URLFix)

- (NSString *) standardizedURLPath
{
   printf( "%s\n", __PRETTY_FUNCTION__);
   return( nil);
}

@end

Here's the Application source:

main.m
//  Coded by Nat! on 21.10.10, Mulle KybernetiK
#import <main/NSString+URLFix.h>


int main( int argc, char *argv[])
{
   [@"http://localhost" standardizedURLPath];
   return( 0);
}