Re: Using Delegate
Re: Using Delegate
- Subject: Re: Using Delegate
- From: Art Isbell <email@hidden>
- Date: Thu, 6 Mar 2003 15:10:46 -1000
On Thursday, March 6, 2003, at 10:15 AM, Jacky Gagnon wrote:
I don't really understand how to use a delegate.
I want to use databaseContextWillPerformAdaptorOperations, but I don't
know how and where to declare it?
Where and when I call
EODatabaseContext.setDefaultDelegate(objectinstance); ?
Invoke EODatabaseContext.setDefaultDelegate(objectinstance) before you
want the delegate methods to be invoked. Doing so in Application's
constructor would be very early in the process' life.
objectinstance should be an object that will exist during the period
when you want the delegate methods to be invoked. Delegate methods
should be implemented in objectinstance's class.
Delegate methods may be invoked repeatedly, so take care to implement
operations in their implementations that aren't time-consuming.
Aloha,
Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.