I have a class with a set of 5 variables that are continuously
updated. I have another class with the same variables that needs to be
notified and passed the values of the data in the first class when an
update occurs. Im trying to set up a custom delegate method to do this
but am having some trouble. I saw some examples on developer.apple.com
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html#//apple_ref/doc/uid/TP40002974-CH7-DontLinkElementID_114
where it talks about delegates for a custom class, and also the
example on cocoa dev central that gives a similar scenario.
http://cocoadevcentral.com/articles/000075.php
Would a delegate method be the correct way to implement this? and if
so how would I pass it the values? Both examples I mentioned use a
generic NSObject interface like this:
@[EMAIL PROTECTED]
NSObject (MyObjectDelegateMethod)
- (BOOL)operationShouldProceed;
@[EMAIL PROTECTED]
this necessary? and what does it do exactly? Thanks for any advice
in advanced!!!