Re: NSApp sendAction
Re: NSApp sendAction
- Subject: Re: NSApp sendAction
- From: "Brian O'Brien" <email@hidden>
- Date: Wed, 23 Nov 2005 10:08:47 -0700
On 23-Nov-05, at 9:57 AM, j o a r wrote:
On 23 nov 2005, at 17.54, Nick Zitzmann wrote:
You should probably use the -[NSObject performSelector:] family of
methods instead.
Or failing that, use NSInvocation.
j o a r
So how about ...
- (id)performSelector:(SEL)aSelector withObject:(id)anObject
withObject:(id)anotherObject
?
Pardon me if I need some help here....
[reply performSelector:@selector(seriesReceivedInArray:fromPort:)
withObject:dataSets withObject:portNumber];
Where reply is the instance of the object whose selector I want to call?
Of course this object must inherit from NSObject...
_______________________________________________
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