NSApp sendAction
NSApp sendAction
- Subject: NSApp sendAction
- From: "Brian O'Brien" <email@hidden>
- Date: Wed, 23 Nov 2005 09:29:52 -0700
Hi. I'm trying to use NSApp sendAction.
However I don't seem to be able to pass parameters to the selector.
For example...
[NSApp sendAction:@selector(seriesReceivedInArray:dataSets
fromPort:portnumber) to:reply from:self];
won't compile I get the error message
err: expected `:' before 'fromPort'
However
[NSApp sendAction:@selector(seriesReceivedInArray:) to:reply
from:self];
complies without error.
Maybe I have a syntax error and am not calling it properly?
Previously I was doing:
[reply seriesReceivedInArray:dataSets fromPort:portNumber];
but that doesn't work with pyObjC calling a python method.. but that
I guess is beyond the scope
of this mailing list....
So does anyone know how I can pass parameters to selector using NSApp
sendAction?
How about performSelctorOnMainThread? How might I use that? Or
shouldn't I?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden