• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOKit Template doesn't find headers.... (Xcode 1.5)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOKit Template doesn't find headers.... (Xcode 1.5)?


  • Subject: Re: IOKit Template doesn't find headers.... (Xcode 1.5)?
  • From: Rob Frohne <email@hidden>
  • Date: Thu, 17 Feb 2005 12:20:33 -0800

Hi Chris,

Thanks for the pointers. I found by looking at other example kexts that #include #include <mach/mach_types.h> defined things like NULL, but the code sense is enabled in both places, and it doesn't work. I usually rely on that because the docs never seem to tell you what #includes need to be there for things like KUNCUserNotificationDisplayAlert. See for example:
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/ WritingDeviceDriver/KernelUserNotification/chapter_6_section_4.html


Is this a bug in Xcode, or is there something else I'm missing. Xcode's code sense works for me in other projects, though if I past my call:

int main (int argc, const char * argv[])
{
kern_return_t ret;

unsigned int rf;

ret = KUNCUserNotificationDisplayAlert( 10, 0, NULL, NULL, NULL,"Something's Gone Terribly Wrong!",
"Do you want to do anything about it?",
"Yes", // Default
"No", // Alternative
"Think About It", // Other
&rf);
if (ret == KERN_SUCCESS) {
if (rf == kKUNCDefaultResponse)
IOLog("Default button clicked");
else if (rf == kKUNCAlternateResponse)
IOLog("Alternate button clicked");
else if (rf == kKUNCOtherResponse)
IOLog("Other button clicked");
}
}


into say the Deva project, I still can't use code sense to find KUNCUserNotificationDisplayAlert.

Any other ideas?

Thanks,

Rob

On Feb 17, 2005, at 10:42 AM, Chris Espinosa wrote:

On Feb 16, 2005, at 8:35 PM, Rob Frohne wrote:

I just wanted to try to make a quick very simple kext using Xcode 1.5, and found that it can't seem to find the most basic header files, like MacTypes.h. I can't command click on kernel functions like KUNCUserNotificationDisplayAlert and get a look at the header files either.

Kexts are kernel-level and generally don't use Carbon headers like MacTypes.h. You probably don't have CoreServices.framework in your Other Frameworks folder in your project. As for navigating to a symbol, a) make sure that indexing is on and your project is indexed (check both Xcode Preferences > Navigation > Code Sense > Enable indexing and (project) > Get Info > Code Sense > Enable Indexing, respectively). Then you should be able to navigate from a symbol to its header file with command-double-click on the symbol.


Chris
_______________________________________________
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

--
Rob Frohne, Ph.D., P.E.
E.F. Cross School of Engineering
Walla Walla College
http://www.wwc.edu/~frohro/

_______________________________________________
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


  • Follow-Ups:
    • Re: IOKit Template doesn't find headers.... (Xcode 1.5)?
      • From: Scott Tooker <email@hidden>
References: 
 >IOKit Template doesn't find headers.... (Xcode 1.5)? (From: Rob Frohne <email@hidden>)
 >Re: IOKit Template doesn't find headers.... (Xcode 1.5)? (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Setting user defaults for an app launch?
  • Next by Date: Re: XML / XSLT parser for C++ projects
  • Previous by thread: Re: IOKit Template doesn't find headers.... (Xcode 1.5)?
  • Next by thread: Re: IOKit Template doesn't find headers.... (Xcode 1.5)?
  • Index(es):
    • Date
    • Thread