• 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
Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...


  • Subject: Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
  • From: Andreas Monitzer <email@hidden>
  • Date: Sun, 2 Dec 2001 23:36:30 +0100

On Sunday, December 2, 2001, at 11:12 , Diggory Laycock wrote:

But it's much easier and simpler in cocoa, and I'm trying to code as much in cocoa and as little in carbon as possible. (not knowing much carbon)

<joke>I thought your email address was @cocoadevcentral.com not @carbondevcentral.
com! </joke>

Well, my address is @cocoadevcentral.com, not @fucktheAPIscentral.com. Btw, I started programming the Classic API (which became the Carbon API) and moved to Cocoa afterwards.

What are you trying to do?

Here's some IC example source for setting the homepage:

#include <stdio.h>
#include <string.h>

#include <HIToolbox/InternetConfig.h>

int main (int argc, const char * argv[]) {
ICInstance ic;
char newhp[512];

if(argc<2) {
fprintf(stderr,"Usage: %s <new homepage>\n",argv[0]);
exit(1);
}

// convert to Pascal string
newhp[0]=strlen(argv[1]);
bcopy(argv[1],newhp+1,newhp[0]);

ICStart(&ic,0);
ICBegin(ic,icReadWritePerm);

ICSetPref(ic,kICWWWHomePage,kICAttrNoChange,newhp,newhp[0]);

ICEnd(ic);
ICStop(ic);

return 0;
}


andy


  • Follow-Ups:
    • Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
      • From: Diggory Laycock <email@hidden>
References: 
 >Re: NSUserDefaults and the synchronize: method - doesn't seem to sync... (From: Diggory Laycock <email@hidden>)

  • Prev by Date: [ANN] Cocoa SIG meeting in Houston (and Dr. Mac, too!)
  • Next by Date: Re: Quartz documentation
  • Previous by thread: Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
  • Next by thread: Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
  • Index(es):
    • Date
    • Thread