Re: NSUserDefaults and the synchronize: method - doesn't seem to sync...
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