• 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: Internet Config Example under Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Config Example under Cocoa


  • Subject: Re: Internet Config Example under Cocoa
  • From: email@hidden
  • Date: Thu, 6 Feb 2003 20:29:32 +0100

On jeudi, fivrier 6, 2003, at 06:59 PM, daniele m. wrote:

On Thu, 6 Feb 2003 14:58:11 +0100, Stiphane Sudre wrote:
On Thursday, February 6, 2003, at 02:08 PM, daniele m. wrote:

Hello,

I would to read the internet configuration settings (like smtp server,
pop server, mail etc) for my own cocoa application. I think that i need
of some carbon APIs but i don't know how to use these callbacks.
Anyone have a good example to implement in my app?

ICInstance tInstance;
Handle tHandle=NewHandle(10);
ICAttr tAttributes;
CFIndex count;

status=ICStart(&tInstance,'MYAP');

if (status==noErr)

[cut]

Sorry i have some problems (i'm a little newbie :P)... what's kind of
variable is status?

OSStatus status should work.

Where can i found the keys (TheKeyImLookingfor)?

In the InternetConfig header file.

And what's mean
if (status==noErr && GetHandleSize(tHandle)>0)
{
// To be continued...
}


That you need to do a bit of work by yourself to get the date from the Handle (which is more or less a char **).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Internet Config Example under Cocoa (From: "daniele m." <email@hidden>)

  • Prev by Date: Re: NSLayoutManager question
  • Next by Date: Re: drag and drop sample is incorrect: it does not use the pasteboard contents
  • Previous by thread: Re: Internet Config Example under Cocoa
  • Next by thread: Loading include files from a bundle
  • Index(es):
    • Date
    • Thread