Re: NSSSelector question #2
Re: NSSSelector question #2
- Subject: Re: NSSSelector question #2
- From: Robert Nicholson <email@hidden>
- Date: Sun, 8 May 2005 20:52:19 -0500
That is a function not a method.
On May 8, 2005, at 8: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
_______________________________________________
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