Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selector not recognized



> Myclass mc* = mydelegate;
Is it the same as the regular syntax :
Myclass *mc = mydelegate ?

By the way, I'm not sure to understand what you're doing.
Did you instanciate a Myclass instance in the nib ? (is there a blue
cube with the name of the class in InterfaceBuilder ?).
And then, you connect an outlet of another objet to your Myclass
instance, and try from it to call a Myclass method.

Am I right ?

If this is the case, please post your code, as this seem very tricky,
you should have a mistake somewhere :-)

> Since calling class method doesn't work I tried to get at the public
> variable of Myclass but can find no documentation on how that is done.
> mc.publicmcvariable clearly is not it. Debugger can see it why not me?
See documentations about KVC complience, then you would be able to
access instance variables with methods like :
[Myclass valueForKey: @"myVar"]

--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >selector not recognized (From: a984984 <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.