Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jordan72

macrumors member
Original poster
Nov 23, 2005
88
0
I tried out this tutorial:

http://developer.apple.com/document...xt.html#//apple_ref/doc/uid/20002365-BABJHCJA

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?
 

mkrishnan

Moderator emeritus
Jan 9, 2004
29,776
15
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.
 

Catfish_Man

macrumors 68030
Sep 13, 2001
2,579
2
Portland, OR
mkrishnan said:
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.


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

yellow

Moderator emeritus
Oct 21, 2003
16,018
6
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..
 

Jordan72

macrumors member
Original poster
Nov 23, 2005
88
0
yellow said:
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.

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.
 

caveman_uk

Guest
Feb 17, 2003
2,390
1
Hitchin, Herts, UK
mkrishnan said:
Seriously, how legitimate is the creation of third-party kernel extensions considered?
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:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.