Nsbundle help?
Nsbundle help?
- Subject: Nsbundle help?
- From: "John C. Welch" <email@hidden>
- Date: Sat, 02 Apr 2011 21:31:13 -0400
- Thread-topic: Nsbundle help?
Title: Nsbundle help?
So in trying to speed up Kext Lister, or at least make it so that it can recognize a quit function faster, I realized that NSBundle has much of what I need and may be a better choice than do shell script.
So I take a look at it and it looks like what I need to do is get the bundle I need architecture information for, then get the executable architectures for that bundle. Simple, right?
Since kextstat gives me the bundle identfier, I should use bundleWithIdentifier() to get the bundle. That takes an nsstring as its parameter so...
set theBundleID to NSString's stringWithString_("com.apple.iokit.IOACPIFamily")
then:
tell current application's NSBundle to set theBundle to bundleWithIdentifier_(theBundleID)
Which would then allow me to do things like:
set my theBundlePath to theBundle's executablePath()
However, when I try that one, I get:
[<NSObject 0x7fff70154468> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key theBundlePath.
Again, I know I’m missing something simple, but I’m not sure what. Ideas?
--
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed."
Dwight D. Eisenhower, April 16, 1953
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden