Development system with methods for type-safe delegation of object events to event handlers of other objects
AssigneeInprise Corporation
InventorAnders Hejlsberg
Life of this patent
Estimating the term…
Loading patent…
AssigneeInprise Corporation
InventorAnders Hejlsberg
Estimating the term…
A visual development system is described which provide “method pointers” allowing a developer/user to achieve delegation between objects programmatically as well as visually. Delegation “binds” an event source with an event handler. This binding is directly supported within the programming language of the system. Using a simple assignment statement, the user can assign a handler of one object (i.e., delegated-to object) to the method pointer of another object (i.e., delegated-from object). A delegation through assignment leads to not only the address of the method being copied but also the address of the delegated-to object (i.e., “this” pointer) being copied into the method pointer. The method pointer, when called, can invoke the pointed-to method on that (delegated-to) object, complete with the context (e.g., local data) of the object. The object knows about itself and, thus, can provide the appropriate context. In this fashion, the system allows the user to easily control object behavior through delegation, whether the user is working in a visual environment or a programming environment (or switching back and forth between each).
In an object-oriented development system for creating a computer program, said computer program comprising objects which respond to events, a method for delegating control for handling an event from a first object to a method of a second object, the method comprising:
In a computer system, a method for binding first and second objects together, the method comprising:
A visual development system comprising:
Dependencies are inferred from the claim text.