Class GTKAction
The GTKAction class manages connections between objects.
Instances of this class can be passed as arguments to GTK's
-connectSignal:withAction: methods.
NSObject
|
+---GTKAction
Class GTKAction inherits from NSObject
Last modified: 7.8.98 (./GTKAction.m)
Instance Variables
- protected id target
- target object of this action
- protected SEL selector
- target selector to perform
- protected IMP method
- target function pointer
- protected void *data
- optional user data
- + actionWithTarget:target selector:(SEL) selector
-
- + actionWithTarget:target selector:(SEL) selector data:(const void *) data
-
- - (void *) data
-
- - initWithTarget:target selector:(SEL) selector
-
- - initWithTarget:target selector:(SEL) selector data:(const void *) data
-
- - (void) performWithSender:sender args:(GtkArg *) args count:(unsigned) count
-
- - (SEL) selector
-
- - (void) setData:(const void *) data
-
- - (void) setTarget:target selector:(SEL) selector
-
- - target
-
Methods
+ actionWithTarget:_target selector:(SEL) _selector
-
Create an autoreleased GTKAction that will send selector to target.
See also: -performWithSender:args:count:
+ actionWithTarget:_target selector:(SEL) _selector data:(const void *) _data
-
Create an autoreleased GTKAction that will send selector to target.
data will be passed as an additional argument to the method.
- init
-
Initialize a new GTKAction without selector and target.
See also: -setTarget:selector:
- initWithTarget:_target selector:(SEL) _selector
-
Initialize a new GTKAction that will send selector to target.
See also: -performWithSender:args:count:
- initWithTarget:_target selector:(SEL) _selector data:(const void *) _data
-
Initialize a new GTKAction that will send selector to target.
data will be passed as an additional argument to the method.
- Returns:
- self
- (void) setTarget:_target selector:(SEL) _selector
-
Set the receiver's target and/or selector. If target is nil or
selector is NULL, the previous value is not changed.
- (void) setData:(const void *) _data
-
Set the receiver's user data.
- target
-
Return the current target of this action.
- (SEL) selector
-
Return the current selector of this action.
- (void *) data
-
Return the current user data of this action.
- (void) performWithSender:sender args:(GtkArg *) args count:(unsigned) count
-
Send the current selector to the target. The action will pass the
sender object, count arguments from the argument array starting at
args and the user data (if it has been set) to the method. The return
value will be stored in args[count], which must contain the correct type
information for the return value.
If the selector's return type is void and count is 0,
args may be NULL.
See also: -connectSignal:withAction: in class GTK
generated Mon Aug 10 22:08:10 1998
by Objcdoc