• 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
Toll-free bridging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Toll-free bridging


  • Subject: Toll-free bridging
  • From: Tommy Knowlton <email@hidden>
  • Date: Wed, 17 Apr 2002 17:44:45 -0600

Can someone tell me, does toll-free bridging imply the safety of the
following operation:

NSLog([(NSString *)CFXMLParserCopyErrorDescription(parser) autorelease]);

Also, perhaps more importantly: are the semantics of the indicated operation
both defined and intuitive? In other words, am I safe to use toll-free
bridging to make a shorthand for the bulkier equivalent:

CFStringRef sr;
CFShow(sr = CFXMLParserCopyErrorDescription(parser));
CFRelease(sr);

I'm not altogether sure that NSLog and CFShow target the same file
descriptor, but that's not really the point, to my mind: I'd also like to be
able to use the autorelease shorthand in other situations involving
toll-free bridged types.

--Tk!
_______________________________________________
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.

  • Prev by Date: random value problem
  • Next by Date: Re: Porting a Win app to MAC 10
  • Previous by thread: Re: random value problem
  • Next by thread: A suggestion for alias and symbolic links, and a request
  • Index(es):
    • Date
    • Thread