Re: [Q] How do I Create an NSEvent Using Runtime Functions?
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.