Re: help with getting component to register
Re: help with getting component to register
- Subject: Re: help with getting component to register
- From: Jerry <email@hidden>
- Date: Tue, 13 Dec 2005 09:01:10 +0000
On 13 Dec 2005, at 11:21, Daniel Child wrote: I have created a text service component (input method) and tried installing it (/Library/Components) but it does not register with the Component Manager (in other words, it did not show up under System Preferences -> International -> Input Methods). I have two theories on why, and am hoping that someone out there knows about this kind of thing. The documentation seems to be out of date, as is the sample BasicInputMethod code.
a) It could be that the product needs to be of type .component. Currently, in PB, the product shows up as .bundle. I've racked my brains and scoured the Internet on how to change this, but have come up with nothing. I artificially renamed the extension after the build, but I'm not sure if this is a legitimate approach.
Yes, it does need to have the .component extension. I do this in a Shell script build phase. b) The other possibility seems to be that you may need to use some kind of component resource file. I have been trying to do everything with nib files, as I think it is simply to require resource files in an age where there is no OSX software to create them. If the .r file is somehow required and someone knows of good documentation (or can explain it themselves), please let me know. I have only recently learned a bit of Carbon and am totally unfamiliar with the old style of resource files.
AFAIK, You have to have the .r file because it contains the 'thng' resource which describes the component. It's really easy to get this wrong - any tiny error in the thng resource and your component won't register and you won't know why. Make absolutely sure that you set the vendor code so it doesn't clash with BasicInputMethod (if you've installed that as well) and double check the arithmetic for setting the language and script codes. There's some real magic required there.
Some documentation (very sparse):
Jerry
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden