• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ICDeletePref ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ICDeletePref ??
      • From: Rich Siegel <email@hidden>
  • Prev by Date: Re: API for active network connection
  • Next by Date: Re: ICDeletePref ??
  • Previous by thread: Re: API for active network connection
  • Next by thread: Re: ICDeletePref ??
  • Index(es):
    • Date
    • Thread