Having trouble with Object's +alloc class method in 10.6.4
Having trouble with Object's +alloc class method in 10.6.4
- Subject: Having trouble with Object's +alloc class method in 10.6.4
- From: dan hitt <email@hidden>
- Date: Mon, 28 Jun 2010 20:16:32 -0700
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden