This should be an elementary step, just like in  all the examples I've seen, 
but it doesn't work for me.
I'm trying to create an instance of a class, which I can use to access -methods.

Class *obj = [Class new];
 works OK in ProjectAppDelegate.m.



However, exactly the same statement fails when pasted into -init of Class.m. 

Build yields "warnings  Class may not respond to -new."  I have not created any 
-new, and NSObject shows +new.
It doesn't matter if the  Class * declaration is in the .h files instead of .m 
files.

It runs but does nothing. A break point is reached in ProjectAppDelegate.m, but 
none is reached in Class.m

I'm using Xcode 3.2.4, which has GNU gdb 6.3.50-20050815 (Apple version 
gdb-1472) (Wed Jul 21 10:53:12 UTC 2010).
On the chance that Xcode was corrupted, I deleted and installed it again. No 
improvement. 

I couldn't find any leads in Google. Any idea what's going on? 

Thanks,

Nick


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to