• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Using Delegate (From: Jacky Gagnon <email@hidden>)

  • Prev by Date: Need Help with D2JC Rule System
  • Next by Date: Re: VARCHAR > 3000 characters with JTurbo and SQL Server 7 (WO 5.2)
  • Previous by thread: Using Delegate
  • Next by thread: Credit card framework?
  • Index(es):
    • Date
    • Thread