Re: NSApp sendAction
Re: NSApp sendAction
- Subject: Re: NSApp sendAction
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 23 Nov 2005 12:11:20 -0500
That looks about right. The only thing to watch out for is that the
arguments should be "objects," so if your portNumber is not an
NSNumber, you may want to change the signature of the function so
that it expects an NSNumber instead of a straight int.
To be honest I'm not really sure how dire (if at all) the
consequences of sending a non-object are, but it seems like a bad idea.
Daniel
On Nov 23, 2005, at 12:08 PM, Brian O'Brien wrote:
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