• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSSSelector question #2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSSSelector question #2
      • From: Todd Blanchard <email@hidden>
    • Re: NSSSelector question #2
      • From: Robert Nicholson <email@hidden>
  • Prev by Date: Re: xcode's user files and version control
  • Next by Date: Re: NSAppleScript with threading
  • Previous by thread: Re: xcode's user files and version control
  • Next by thread: Re: NSSSelector question #2
  • Index(es):
    • Date
    • Thread