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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to