Re: NSSSelector question #2
Re: NSSSelector question #2
- Subject: Re: NSSSelector question #2
- From: Robert Nicholson <email@hidden>
- Date: Sun, 8 May 2005 23:01:02 -0500
Did you try to simply use null?
as in
theSelector = new NSSelector("bar",null);
On May 8, 2005, at 10:31 PM, Todd Blanchard wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I think you are constructing a selector that thinks it takes one
argument.
theSelector = new NSSelector("bar", new Class[] {null});
bar() takes zero arguments. So I think the second ctor argument
should be 'new Class[0]'.
On May 8, 2005, at 6:34 PM, Gian Carlo Cervone wrote:
Hello:
Please help if you can.
If I have a custom class Foo, subclassed from NSObject (this
project is in Java), and within it have defined a method thus:
/* begin excerpt */
void bar() {
/* do something here */
}
/* end excerpt */
and then have the following code in another custom class definition:
/* begin excerpt */
private Foo theFoo;
private NSSelector theSelector;
theSelector = new NSSelector("bar", new Class[] {null});
System.out.println(theSelector.implementedByClass(Foo.class));
/* end excerpt */
shouldn't I get a 'true' in the output?
Currently, this is a problem, since I am getting a 'false'
instead. I have tried to follow the examples given in the docs
for "using NSSelectors." Have I misunderstood the concept of
implemetedByClass()?
Thanks a lot in advance for any advice.
Best Regards,
Gian Carlo Cervone
Rochester, NY
_______________________________________________
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFCftmHhullemWJdQ8RAk9AAJwJaMCIcDAnoC7mDPgcd03krNbGcQCfS6Al
8Z84rEXFtBP0fr7GjouZOlg=
=jgc1
-----END PGP SIGNATURE-----
_______________________________________________
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
_______________________________________________
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