Discussion in 'Mac Programming' started by Jordan72, Dec 12, 2005.

  1. macrumors member

    Nov 23, 2005
    I tried out this tutorial:


    but, I've reached an impasse.

    In this section: Edit the KEXT Settings

    In step three, it asks me to:

    Select text.plist.xml and double-click Default (Plain Text File) in the Preferred Editor column.

    But no text.plist.xml exists.

    I tried going on without doing this step and my kext won't load.

    Anyone know what is going on?
  2. macrumors 65816


    Jan 21, 2005
    Massachusetts, Connecticut
  3. Moderator emeritus


    Jan 9, 2004
    Grand Rapids, MI, USA
    Best. Thread. Evar. :D

    Seriously, how legitimate is the creation of third-party kernel extensions considered? I had always thought the conception was that things like Sidetrack are inherently hacks with a YMMV tag placed on them. So I guess it is surprising that Apple themselves have a how-to on making kernel extensions... this document doesn't really provide any guidelines for a "safe" extension, but you'd think that, to the extent that Apple tells you how to make them, as a developer, you'd have the reciprocal right to expect that, if you played by the rules, the system would remain stable when you implemented them.
  4. macrumors 68030


    Sep 13, 2001
    Portland, OR

    Lots of stuff uses kexts... mostly drivers, but quite a few other things as well.
  5. Moderator emeritus


    Oct 21, 2003
    Portland, OR
    Yeah, it's not there in XCode 2.1.

    If I had to guess, I'd say just change the default app for text.plist to the PLE. That'll cover all the plists listed under text.plist, and I'd rather read/change any plists with that, particularly now that they're binarized in Tiger.

    Lemme check XCode 2.2 before I complain with the link at the bottom to report typos/errors..

    EDIT: Nope, not in XCode 2.2 either..
  6. thread starter macrumors member

    Nov 23, 2005
    That did it. Thank you. Your answer kext ass!

    Under the Edit the KEXT’s Settings, there are six steps. I skipped them and took your advice. But I had to figure out alittle bit from there. This is what worked.

    New steps for Edit the KEXT’s Settings (just so it's documented somewhere):

    1. Choose Xcode > Preferences and click the File Types icon. You will see two types: folder and file.

    2. Click at the very end of the file type where the two small triangles are. A menu will pop up. Choose External Editor. When External Editor is chosen, a sub-menu will pop up. Select Property List Editor. Press the Okay button.

    3. Don't follow the six steps in the tutorial, because they won't make sense.
  7. Guest


    Feb 17, 2003
    Hitchin, Herts, UK
    There's very good reasons for wanting to make kernel extensions but IMO the bar for the quality of your code should be much higher. If your app code crashes then just your app crashes (or at least that's what should happen). If your .kext code crashes then it can bring the OS down too.

    Also with kernel extensions you tend to be working in straight C so there's less of a safety net to start with. C gives you plenty of rope.:rolleyes:

Share This Page