Re: NSApp sendAction
Re: NSApp sendAction
- Subject: Re: NSApp sendAction
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 23 Nov 2005 09:54:16 -0700
On Nov 23, 2005, at 9:29 AM, Brian O'Brien wrote:
Maybe I have a syntax error and am not calling it properly?
Correct. Parameters can't go into an @selector() call:
[NSApp sendAction:@selector(seriesReceivedInArray:dataSets
fromPort:portnumber) to:reply from:self];
That should be @selector(seriesReceivedInArray:fromPort:).
So does anyone know how I can pass parameters to selector using
NSApp sendAction?
With -sendAction:, the "from" is the only parameter that is sent. -
sendAction: is intended for sending interface actions, etc. and not
general messaging. You should probably use the -[NSObject
performSelector:] family of methods instead.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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