Returns a new NSEvent object describing a custom event.
Original signature is '+ (NSEvent *)otherEventWithType:(NSEventType)type location:(NSPoint)location modifierFlags:(NSUInteger)flags timestamp:(NSTimeInterval)time windowNumber:(NSInteger)windowNum context:(NSGraphicsContext *)context subtype:(short)subtype data1:(NSInteger)data1 data2:(NSInteger)data2'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public static NSEvent OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2( NSEventType type, NSPoint location, NSUInteger flags, double time, NSInteger windowNum, NSGraphicsContext context, short subtype, NSInteger data1, NSInteger data2 )
Public Shared Function OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2 ( _ type As NSEventType, _ location As NSPoint, _ flags As NSUInteger, _ time As Double, _ windowNum As NSInteger, _ context As NSGraphicsContext, _ subtype As Short, _ data1 As NSInteger, _ data2 As NSInteger _ ) As NSEvent
public: static NSEvent^ OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2( NSEventType type, NSPoint location, NSUInteger flags, double time, NSInteger windowNum, NSGraphicsContext^ context, short subtype, NSInteger data1, NSInteger data2 )

- type (NSEventType)
- One of the following event-type constants:
- location (NSPoint)
- The cursor location in the base coordinate system of the window specified by windowNum.
- flags (NSUInteger)
- An integer bit field containing any of the modifier key masks described in “Constants,” combined using the C bitwise OR operator.
- time (Double)
- The time the event occurred in seconds since system startup.
- windowNum (NSInteger)
- An integer that identifies the window device associated with the event, which is associated with the NSWindow that will receive the event.
- context (NSGraphicsContext)
- The display graphics context of the event.
- subtype (Int16)
- A numeric identifier that further differentiates custom events of types NSAppKitDefined, NSSystemDefined, and NSApplicationDefined. NSPeriodic events don’t use this attribute.
- data1 (NSInteger)
- Additional data associated with the event. NSPeriodic events don’t use these attributes.
- data2 (NSInteger)
- Additional data associated with the event. NSPeriodic events don’t use these attributes.

The created NSEvent object or nil if the object couldn't be created.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)