Re: Modifying Bundle's Info Property List
Re: Modifying Bundle's Info Property List
- Subject: Re: Modifying Bundle's Info Property List
- From: "Sean Morrell" <email@hidden>
- Date: Wed, 21 Nov 2001 10:27:52 -0800
email@hidden writes:
>
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);
I may be approaching this wrong. Actually, I don't want a copy. I need
to change the property list file itself. How can this be done?
>
>
>
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).
Hummmm ... I hadn't really thought about it. That's probably where third
party drivers should reside. Thanks.
>
>
>
> 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.
>
_______________________________________________
>
darwin-kernel mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/darwin-kernel