Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 12, 2005, 11:19 PM   #1
Jordan72
macrumors member
 
Join Date: Nov 2005
.kext

I tried out this tutorial:

http://developer.apple.com/documenta...02365-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?

Last edited by Jordan72; Dec 16, 2005 at 01:03 AM.
Jordan72 is offline   0 Reply With Quote
Old Dec 12, 2005, 11:20 PM   #2
stridey
macrumors 65816
 
stridey's Avatar
 
Join Date: Jan 2005
Location: Massachusetts, Connecticut
Quote:
Originally Posted by Jordan72
Yup, that's the guide for creating kernal extensions...


why?
__________________
"Can't help it, I'm a born lever puller."
Stridey: Macs, Music, Politics, and College.
iBook G4 1.33Ghz, 1.2GB RAM, 60GB HD, 10.4.6
stridey is offline   0 Reply With Quote
Old Dec 12, 2005, 11:24 PM   #3
mkrishnan
Moderator emeritus
 
mkrishnan's Avatar
 
Join Date: Jan 2004
Location: Grand Rapids, MI, USA
Best. Thread. Evar.

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.
__________________
Mira C. Krishnan
mkrishnan is offline   0 Reply With Quote
Old Dec 13, 2005, 06:20 PM   #4
Catfish_Man
macrumors 68030
 
Catfish_Man's Avatar
 
Join Date: Sep 2001
Location: Portland, OR
Send a message via AIM to Catfish_Man
Quote:
Originally Posted by mkrishnan
Best. Thread. Evar.

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.
Catfish_Man is offline   0 Reply With Quote
Old Dec 13, 2005, 06:29 PM   #5
yellow
Moderator
 
yellow's Avatar
 
Join Date: Oct 2003
Location: 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..

Last edited by yellow; Dec 13, 2005 at 06:50 PM.
yellow is offline   0 Reply With Quote
Old Dec 14, 2005, 12:20 AM   #6
Jordan72
Thread Starter
macrumors member
 
Join Date: Nov 2005
Quote:
Originally Posted by yellow
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.
Jordan72 is offline   0 Reply With Quote
Old Dec 14, 2005, 03:55 AM   #7
caveman_uk
Guest
 
caveman_uk's Avatar
 
Join Date: Feb 2003
Location: Hitchin, Herts, UK
Quote:
Originally Posted by mkrishnan
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.
caveman_uk is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
AppleHWSensor.kext harrymatic PowerPC Macs 2 May 4, 2014 11:27 AM
Passing a string(in user mode) to kernel kext(kext have a dynamic buffer) mehdies Mac Programming 0 Apr 28, 2013 02:22 AM
Please compile this kext. rabidz7 Mac Programming 7 Apr 18, 2013 08:13 PM
kext cache not root? davidlv OS X 10.8 Mountain Lion 12 Mar 9, 2013 05:15 PM
Can't get started with kext development digory Mac Programming 1 Jan 5, 2013 10:15 AM

Forum Jump

All times are GMT -5. The time now is 11:06 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC