Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Custom delegate...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3667 of 3795
Post > Topic >>

Custom delegate method help

by echosummet@[EMAIL PROTECTED] Mar 19, 2008 at 04:18 PM

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!!!
 




 3 Posts in Topic:
Custom delegate method help
echosummet@[EMAIL PROTECT  2008-03-19 16:18:43 
Re: Custom delegate method help
Tom Harrington <tph@[E  2008-03-19 17:54:29 
Re: Custom delegate method help
echosummet@[EMAIL PROTECT  2008-03-21 15:02:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:45:47 CDT 2008.