<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html><file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html>
Hi,
here is how accessors should be defined. Watch the case too.

file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html

HTH

Raphael

On Wed, Sep 24, 2008 at 10:21 AM, Adil Saleem <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I am trying to use bindings for the first time. So this is a pretty basic
> question.
>
> As an example what i am trying to do is that i have a NSTextField in which
> user enters some numeric value. I have a int type variable in my class
> that is binded to the value field of this text field. I get the value in the
> variable correctly. But the problem is that the accessor method that i have
> written are not called. If i print something in the accessor methods, it is
> not printed on the console.
>
> Here is the code.
>
>
> I have declared in myClass.h
>
> @interface myClass: NSObject {
>
>          int Var;
> }
>
> -(void)setVar:(int)aNumber;
> -(int)getVar;
>
> In the myClass.m i have
>
> @implementation myClass
>
> -(void)setVar:(int)aNumber {
>
>    Var = aNumber;
> }
>
> -(int)getVar
> {
>     return Var;
> }
>
>
>  Why are these functions not being called ? Am i missing something in the
> syntax or is it something else.
>
>
> Thanx
>
>
>
>
>
>
> _______________________________________________
>
> 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/raphael.sebbe%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to