• 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: Installing carbon event handlers into a cocoa application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing carbon event handlers into a cocoa application


  • Subject: Re: Installing carbon event handlers into a cocoa application
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 12 Nov 2006 19:47:08 -0800

On Nov 12, 2006, at 3:02 PM, Justin Walsh wrote:

What I am trying to do is handle mouse and keyboard input, eventually
joysticks as well, for my application from an Input class that already works
in carbon apps, windows apps, and linux apps. Really I have no desire to
rewrite sections of the library specifically for cocoa and would much rather
see if there is any way at all to get my carbon event handling into my cocoa
app, without going the full nine yards of recreating the app as eric stated.

I assume, of course, from your mention of joysticks above that you're not talking about handling mouse and keyboard input for normal application controls, but rather for something like a cross-platform game.


For something like that, I would use the HID Manager from both Carbon and Cocoa. This will enable you to support a fairly wide variety of input devices in a fairly uniform manner, and since it's operating at the IOKit layer (i.e. "beneath" Carbon or Cocoa) it should Just Work regardless of the overall architecture of the application you're using it in.

  -- Chris

PS - A general comment to the list: This is why it's so extremely important to articulate your end goals rather than how you expect to achieve them when asking for help. The approach you're trying may be very different from the approach required for a solution.

_______________________________________________
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


References: 
 >Installing carbon event handlers into a cocoa application (From: "Justin Walsh" <email@hidden>)
 >Re: Installing carbon event handlers into a cocoa application (From: Ricky Sharp <email@hidden>)
 >Re: Installing carbon event handlers into a cocoa application (From: "Justin Walsh" <email@hidden>)

  • Prev by Date: Re: Requested document [:.VIRUS.:]
  • Next by Date: IB question
  • Previous by thread: Re: Installing carbon event handlers into a cocoa application
  • Next by thread: Strange crash with multithreading and -[NSUserDefaults synchronize]
  • Index(es):
    • Date
    • Thread