Re: Modifying Bundle's Info Property List
Re: Modifying Bundle's Info Property List
- Subject: Re: Modifying Bundle's Info Property List
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 21 Nov 2001 17:47:51 +0100
On mercredi, novembre 21, 2001, at 04:33 , Sean Morrell wrote:
I don't know which conference these questions are best suited. Please
tell me if this message needs to be redirected. I'm using the Core
Foundation Bundle services to obtain the information property list for a
driver bundle using the routine CFBundleGetInfoDictionary. However this
routine returns an immutable reference and I need to modify this
information property list. How can I modify the information property
list
for the bundle?
CFMutableDictionaryRef CFDictionaryCreateMutableCopy(CFAllocatorRef
allocator, CFIndex capacity, CFDictionaryRef theDict);
For more information, you can have a look at the CFDictionary.h header.
Also since the bundle is a driver and will reside in
/System/Library/Extensions, will I have a file access issue?
Wouldn't it be possible to add it to the /Library/Extensions folder
instead ? (I don't know if it would work).
The property
list is being modified from a system preference pane in user space. How
do I get the necessary access?
With the Security Framework.