Re: NSApp sendAction
Re: NSApp sendAction
- Subject: Re: NSApp sendAction
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 23 Nov 2005 12:31:57 -0700
On Nov 23, 2005, at 10:08 AM, Brian O'Brien wrote:
[reply performSelector:@selector(seriesReceivedInArray:fromPort:)
withObject:dataSets withObject:portNumber];
Where reply is the instance of the object whose selector I want to
call?
I think you've got it. :) Of course, both dataSets and portNumber
must be Objective-C objects. If you want to pass in primitive
arguments (int, BOOL, etc.) then you need to use NSInvocation instead
as others have mentioned.
Of course this object must inherit from NSObject...
Hopefully you haven't written (or are using) any objects that don't
inherit from NSObject...
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