• 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
Re: [Q] How do I Create an NSEvent Using Runtime Functions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] How do I Create an NSEvent Using Runtime Functions?


  • Subject: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Fri, 16 May 2003 13:36:56 -0400

On Friday, May 16, 2003, at 13:04 US/Eastern, Maurice Volaski wrote:

I would like to create an NSEvent object in a plain C program by using
objc_msgSend to send the class method keyEventWithType, but I am getting
back "selector not recognized".

How are you getting the selector? If you're just passing in a C string, that is wrong. (Yes, selectors are C strings, but they are compared based on the pointer value, not the contents. You need to call sel_getUid().


--
http://homepage.mac.com/clarkcox3/
email@hidden
Clark S. Cox, III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: [Q] How do I Create an NSEvent Using Runtime Functions?
      • From: Maurice Volaski <email@hidden>
References: 
 >[Q] How do I Create an NSEvent Using Runtime Functions? (From: Maurice Volaski <email@hidden>)

  • Prev by Date: NSString <--> MacRoman Pascal String
  • Next by Date: Re: NSString <--> MacRoman Pascal String
  • Previous by thread: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Next by thread: Re: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Index(es):
    • Date
    • Thread