Re: adding a delegate to a class

2008-06-10 Thread Erik Buck
See http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_4.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: adding a delegate to a class

2008-06-10 Thread Jesse Armand
Hello Angelo, I think this code might help you: @protocol BackgroundObjDelegate @optional - (void)showText:(NSString*)text; @end @interface BackgroundObj : NSObject { id _delegate; } @property(assign) id delegate - (void) sayHi; @end @implementation BackgroundObj @synthesize deleg

RE: adding a delegate to a class

2008-06-10 Thread john darnell
Without knowing what exactly you are trying to achieve, it's hard to advise you, Angelo. Would a simple printf or one of its variants do for you? R, John > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Angelo Chen > Sent: Tuesday, June 10, 2008