Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Keyboards?

Keyboards?
Thread Tools
Pukku
Guest
Status:
Reply With Quote
Sep 28, 2000, 01:02 PM
 
Hi! I'd like to create my own keyboard layout for Mac OS X. Does anyone know how to go about doing this? Is it just a KCHR moved over into the data fork? Or is something else going on.... I wonder if it is more complicated than just resources, because of the directory structure of /System/Library/Keyboards/

Thanks,
Ricky
     
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Sep 28, 2000, 05:05 PM
 
The files in /System/Library/Keyboards are files that came in from the NeXT side of the MacOS X equation. They used to be used by the Cocoa framework, but Apple is moving Cocoa towards using the same input methods as Carbon, so these files should become obsolete. As far as creating new keyboards goes, I'm guessing you would create a KCHR resource, and /System/Library/Frameworks/Carbon.framework/Resources/System.rsrc looks like a promising place to put them. You can open it up using ResEdit from Classic, but I wouldn't be surprised if you had to reboot or at least relogin to see the changes take effect.
     
Pukku
Guest
Status:
Reply With Quote
Sep 29, 2000, 10:22 AM
 
Hmmmm.... I tried taking my KCHR resource, using snoop 1.6 to move it into the data fork of the System.rsrc file (which was 0 bytes before I replaced it). However, it didn't make it show up. Further, instead of a Keyboard Icon menu, I now have an "input" menu at the end of the menu bar. So I'm not sure what I did....

I'm going to go look at what the Darwin people have to say, but any other suggestions would be great...

Does anyone know it I could have individual keyboards? Could I put them in the ~/Library/something folder?

[added]
I now receive an error "Failed to file map system file -39". This may be related to the failure to have the keyboard icon. Also, music player and IE fail to run, Quicktime viewer claims it cannot run because it has been damaged. So first: don't try messing about with the System.rsrc file. I'm still working to see if I can recover from this, or if I will need to do a clean install.
[end of addition]

Thanks,
Ricky

[This message has been edited by Pukku (edited 09-29-2000).]
     
Pukku
Guest
Status:
Reply With Quote
Sep 29, 2000, 11:38 AM
 
Well, I have it working again. It turns out that this file _does_ have data in it. On the Install CD, when viewed in MacOS 9, the file has 286 bytes. If I copy it from the CD *in OS 9*, I can copy that data -- which I could not see when I was in OS X. So I copied it over, and everything works fine -- but I still cannot see the file size as larger than 0 bytes in OS X

Ricky
     
Pukku
Guest
Status:
Reply With Quote
Sep 29, 2000, 11:57 AM
 
Well, it gets weirder. On the terminal side, the file is 0bytes in size. However, which looked at with the inspector, there are 286 bytes of data. So where are they?

I opened it with ResEdit from the CD, there was nothing there. I think that I will try to put the KCHR into the Resource fork, as was originally suggested...

Ricky

     
Pukku
Guest
Status:
Reply With Quote
Sep 29, 2000, 12:26 PM
 
Well, I tried putting it in to the resource fork of the System.rsrc file. However, this only made the Settings panel crash when I tried to view the keyboard menu tab....

Any other ideas?

Ricky
     
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Sep 29, 2000, 02:45 PM
 
Maybe you could just edit one of the existing keyboard layouts in System.rsrc to match the one you want to use. Not the prettiest way to do it, but it seems like it should work.
     
Pukku
Guest
Status:
Reply With Quote
Sep 29, 2000, 03:14 PM
 
Originally posted by bewebste:
Maybe you could just edit one of the existing keyboard layouts in System.rsrc to match the one you want to use. Not the prettiest way to do it, but it seems like it should work.
Hmmmm..... except that I don't have any KCHR's (or any resources for that matter) in my System.rsrc.....

Ricky
     
Pukku
Guest
Status:
Reply With Quote
Mar 28, 2001, 04:15 PM
 
I've posted a solution to this problem over in the Usage forum...

Ricky

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:10 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2