MonobjcMonobjc Documented Class Library
NSAppleEventDescriptor Constructor (eventClass, eventID, addressDescriptor, returnID, transactionID)
NamespacesMonobjc.FoundationNSAppleEventDescriptorNSAppleEventDescriptor(UInt32, UInt32, NSAppleEventDescriptor, Int16, Int32)

Initializes a newly allocated instance as a descriptor for an Apple event, initialized with the specified values.

Original signature is '- (id)initWithEventClass:(AEEventClass)eventClass eventID:(AEEventID)eventID targetDescriptor:(NSAppleEventDescriptor *)addressDescriptor returnID:(AEReturnID)returnID transactionID:(AETransactionID)transactionID'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSAppleEventDescriptor(
	uint eventClass,
	uint eventID,
	NSAppleEventDescriptor addressDescriptor,
	short returnID,
	int transactionID
)
Public Sub New ( _
	eventClass As UInteger, _
	eventID As UInteger, _
	addressDescriptor As NSAppleEventDescriptor, _
	returnID As Short, _
	transactionID As Integer _
)
public:
NSAppleEventDescriptor(
	unsigned int eventClass, 
	unsigned int eventID, 
	NSAppleEventDescriptor^ addressDescriptor, 
	short returnID, 
	int transactionID
)
Parameters
eventClass (UInt32)
The event class to be set in the returned descriptor.
eventID (UInt32)
The event ID to be set in the returned descriptor.
addressDescriptor (NSAppleEventDescriptor)
A pointer to a descriptor that identifies the target application for the Apple event. Passing nil results in an Apple event descriptor that has no keyAddressAttr attribute (it is valid for an Apple event to have no target address attribute).
returnID (Int16)
The return ID to be set in the returned descriptor. If you pass a value of kAutoGenerateReturnID, the Apple Event Manager assigns the created Apple event a return ID that is unique to the current session. If you pass any other value, the Apple Event Manager assigns that value for the ID.
transactionID (Int32)
The transaction ID to be set in the returned descriptor. A transaction is a sequence of Apple events that are sent back and forth between client and server applications, beginning with the client’s initial request for a service. All Apple events that are part of a transaction must have the same transaction ID. You can specify kAnyTransactionID if the Apple event is not one of a series of interdependent Apple events.
Return Value
The initialized Apple event (an instance of NSAppleEventDescriptor), or nil if an error occurs.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)