ICDeletePref ??
ICDeletePref ??
- Subject: ICDeletePref ??
- From: "J.R. Blackham" <email@hidden>
- Date: Fri, 7 Apr 2006 15:21:08 -0600
ICDeletePref doesn't seem to be working. I keep getting a -667 error
(icPermErr) even though I think I have the correct permissions set.
Here is the code that isn't working:
-(void)deleteSMB{
OSStatus err;
OSStatus junk;
ICInstance inst;
err = ICStart(&inst, '????');
if (err == noErr) {
ICAppSpec spec;
long size;
size = sizeof(spec);
ICBegin(inst,icReadWritePerm);
err = ICDeletePref(inst, "\pHelper•smb");
if(err != noErr){
NSLog(@"Delete error %d\n",err);
}
ICEnd(inst);
}
junk = ICStop(inst);
assert(junk == noErr);
}
this code is based on the sample code posted in this message:
http://lists.apple.com/archives/macnetworkprog/2002/Oct/msg00094.html
Any ideas on what is wrong?
Thanks,
J.R. Blackham
P.S.
I am running Mac OS X 10.4.6 on a PowerBook G4. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden