• 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: Getting Computer Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Computer Name


  • Subject: Re: Getting Computer Name
  • From: Steve Steinitz <email@hidden>
  • Date: Sun, 20 Jun 2010 23:59:36 +1000

Hi Jonathan,

Thanks for replying.

On 20/6/10, Jonathan Mitchell wrote:

>> Could I have done something to my project to break toll-free bridging?

> You can't break toll free bridging.

> The NSObject and CF type collaborate to route objects and function calls appropriately.

Thanks for that clarification.

> The following works for me:
>
> NSString *name = NSMakeCollectable(SCDynamicStoreCopyLocalHostName(NULL));

Thanks.  NSMakeCollectable looks useful.  I tried:

    NSLog (@"machine %@", NSMakeCollectable (SCDynamicStoreCopyLocalHostName (NULL)));

But it gets a warning and signal EXC_BAD_ACCESS.  I'm still thinking 64-bit issue.

Thanks again,

Steve

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Getting Computer Name
  • Next by Date: Re: Getting Computer Name
  • Previous by thread: Re: Getting Computer Name
  • Next by thread: RADPlugin framework
  • Index(es):
    • Date
    • Thread