Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ICDeletePref ??



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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.