NSSSelector question #2
NSSSelector question #2
- Subject: NSSSelector question #2
- From: Gian Carlo Cervone <email@hidden>
- Date: Sun, 8 May 2005 21:34:44 -0400
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