Re: selector not recognized
Re: selector not recognized
- Subject: Re: selector not recognized
- From: Yann Bizeul <email@hidden>
- Date: Wed, 30 Jun 2004 09:27:16 +0200
>
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.