discuss-gnustep
[Top][All Lists]
Advanced

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

clang and libobjc2


From: Eddie McCreary
Subject: clang and libobjc2
Date: Fri, 26 Mar 2010 08:28:21 -0500

I thought I'd give clang and libobjc2 a try, so I built both of them along with gnustep-base.

I ran into an issue with categories, I created a simple category for NSString with just a print method.  When called like this:

    id o = [NSString stringWithUTF8String:"hello world"];
    [o print]

I get a seg fault.  If I cast this to a NSString pointer, it works:

    NSString *s = (NSString *)o;   
    [s print];

Am I missing something obvious or is the new runtime too young to use yet?  Thanks.

--
Eddie McCreary                 Outside of a dog, a book is a man's best
http://www.heorot.org          friend.  Inside of a dog, it's too dark
                                         to read. -Groucho Marx


reply via email to

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