Re: Pre-defined methods - documentation?
Re: Pre-defined methods - documentation?
- Subject: Re: Pre-defined methods - documentation?
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Sat, 8 May 2004 17:42:46 -0500
Tim Hewett, email@hidden, wrote:
>
I've found by chance that the variables that Interface Builder connects
>
to on-screen controls have default "hidden" accessor methods created
>
for them automatically. For example my app has a text box known to
>
the code as "statusString". Creating a method called "setStatusString:"
>
so that a class outside the controller could set the contents of this
>
text
>
box stopped all text from appearing in this box, even though the body
>
of this method simply called [statusString setStringValue:value]; and
>
returned. Renaming this method to "setStatusStringValue" solved the
>
problem, so clearly it was overriding something. Is there any
>
documentation
>
covering this hidden talent, so far I've found none and it has wasted me
>
both days and hair...!
<
http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/>
| Jonathan 'Wolf' Rentzsch
http://rentzsch.com
| Red Shed Software
http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.