Having trouble with Object's +alloc class method in 10.6.4
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=YP17wUY8N5lQoZsWCo21zxaQfe6B2Zk2B46cSN3zQ20=; b=hJQMVle4JE2RG+l1q3iNYoy1j2fPR5EpFwVz1RuFeZbUgKqScVwHRWxSSvKihT/hvO Yi0rlbSCYN594hJfXBTtfnMfbJP53dYyPkGzK7/YE3zlqk3+NjrFj0CCmUvOoKZ9UwhU NvsMIuxT7a8Ho51m1EdFUbBoz576xjz/jicBk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=shptKvYtjAIZY6ACPC17ncIIc+w9pl7e/aR2FopROLYdvpvDhqHHDp5cPz89LfWMeY HsuYqCYvPU81onbvYuMpQu1i0wzhHDDiI+3cuR2RBNbYGVVy8ymo3bSAGNFrbMQfGWrv 4jQmthZ55t4118MQ+oKJtFLcZmDlgE7gxN/Dc= Hi All, This is an objective-C question, so if it is not exactly the right subject matter for darwin-dev, please direct me to the right list. I have some code that used to compile and work on 10.5.8, but since i upgraded yesterday to 10.6.4 it is having problems. I have classes that inherit from Object. (They do not inherit from NSObject because i want them to be portable to other systems, and also, i have a lot of similar code that i may attempt to ressurect.) Object very clearly declares +alloc in /usr/include/objc/Object.h, on line 67, in fact. My class, which compiled without error or warning a few days ago in 10.5.8, inherits from Object (not NSObject). Now when i try to compile it, i get warnings '....' may not respond to '+alloc' (where the ellipsis is where my class name goes). Other warnings, even more alarming, that i get are: 'Object' may not respond to '-init' My compile command is gcc -c -O0 -Wall -std=c99 ClassName.m (where ClassName.m is the name of my class). I can create a small complete test case if it would be helpful. Thanks in advance for any info. dan _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
dan hitt