<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No member named 'ToCFURL' in 'IO::Location' in AC23 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275547#M3272</link>
    <description>New version of Modules/InputOutput/Location.hpp miss code below.&lt;BR /&gt;
&lt;BR /&gt;
#if defined (macintosh)&lt;BR /&gt;
#ifdef INPUTOUTPUT_MODULE_PRIVATE&lt;BR /&gt;
	GSErrCode	ToFSRef     (FSRef* result) const;			// DOC&lt;BR /&gt;
#endif&lt;BR /&gt;
	GSErrCode   ToCFURL     (CFURLRef* result) const;		// DOC&lt;BR /&gt;
	GSErrCode   ToUTF8POSIXPath (Path* result) const;		// DOC&lt;BR /&gt;
#endif&lt;BR /&gt;
&lt;BR /&gt;
How should I rewrite my code to be compatible with the new version?</description>
    <pubDate>Mon, 02 Dec 2019 07:49:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-02T07:49:57Z</dc:date>
    <item>
      <title>No member named 'ToCFURL' in 'IO::Location' in AC23</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275546#M3271</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Code below compiled successfully in AC22, but providing error in AC23. "No member named 'ToCFURL' in 'IO::Location' "&lt;BR /&gt;&lt;BR /&gt;#if CF_DevKit_Version &amp;gt;= 17&lt;BR /&gt;#ifdef macintosh&lt;BR /&gt;void CF_Location::ToCFURLRef (CFURLRef&amp;amp; cfUrlRef) const {&lt;BR /&gt;&lt;BR /&gt;CIO::Location cioloc (fLoc);&lt;BR /&gt;cioloc.ToCFURL (&amp;amp;cfUrlRef); &lt;BR /&gt;&lt;BR /&gt;} // CF_Location::ToCFURLRef&lt;BR /&gt;#endif // macintosh&lt;BR /&gt;#endif // CF_DevKit_Version &amp;gt;= 17&lt;BR /&gt;&lt;BR /&gt;No member named 'ToUTF8POSIXPath' in 'IO::Location'&lt;BR /&gt;&lt;BR /&gt;#ifdef macintosh&lt;BR /&gt;CF_String CF_Location::GetPOSIXPath () const {&lt;BR /&gt;&lt;BR /&gt;CIO::Location cioloc (fLoc.ToGSUniString ());&lt;BR /&gt;CIO::Path cioPath;&lt;BR /&gt;&lt;BR /&gt;#if CF_DevKit_Version &amp;lt; 15&lt;BR /&gt;GSErrCode err = cioloc.ToPOSIXPath (&amp;amp;cioPath);&lt;BR /&gt;#else&lt;BR /&gt;GSErrCode err = cioloc.ToUTF8POSIXPath (&amp;amp;cioPath);&lt;BR /&gt;#endif // CF_DevKit_Version &amp;lt; 15&lt;BR /&gt;&lt;BR /&gt;if (err != NoError) return CF_String ();&lt;BR /&gt;return CF_String (cioPath);&lt;BR /&gt;&lt;BR /&gt;} // CF_Location::GetPOSIXPath&lt;BR /&gt;#endif // macintosh&lt;BR /&gt;&lt;BR /&gt;Is there any new function in AC23 instead of ToUTF8POSIXPath and ToCFURL?&lt;BR /&gt;Regards,&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:55:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275546#M3271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T07:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: No member named 'ToCFURL' in 'IO::Location' in AC23</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275547#M3272</link>
      <description>New version of Modules/InputOutput/Location.hpp miss code below.&lt;BR /&gt;
&lt;BR /&gt;
#if defined (macintosh)&lt;BR /&gt;
#ifdef INPUTOUTPUT_MODULE_PRIVATE&lt;BR /&gt;
	GSErrCode	ToFSRef     (FSRef* result) const;			// DOC&lt;BR /&gt;
#endif&lt;BR /&gt;
	GSErrCode   ToCFURL     (CFURLRef* result) const;		// DOC&lt;BR /&gt;
	GSErrCode   ToUTF8POSIXPath (Path* result) const;		// DOC&lt;BR /&gt;
#endif&lt;BR /&gt;
&lt;BR /&gt;
How should I rewrite my code to be compatible with the new version?</description>
      <pubDate>Mon, 02 Dec 2019 07:49:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275547#M3272</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-02T07:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: No member named 'ToCFURL' in 'IO::Location' in AC23</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275548#M3273</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
ToUTF8POSIXPath () is simply ToPath().ToCStr(). Get(), as all C strings are UTF-8 encoded.&lt;BR /&gt;
&lt;BR /&gt;
From this path you can create a CFURLRef with CFURLCreateFromFileSystemRepresentation (see &lt;A href="https://developer.apple.com/documentation/corefoundation/1543314-cfurlcreatefromfilesystemreprese?language=objc" target="_blank"&gt;&lt;LINK_TEXT text="https://developer.apple.com/documentati ... guage=objc"&gt;https://developer.apple.com/documentation/corefoundation/1543314-cfurlcreatefromfilesystemreprese?language=objc&lt;/LINK_TEXT&gt;&lt;/A&gt;)&lt;BR /&gt;
&lt;BR /&gt;
Best, Akos</description>
      <pubDate>Mon, 02 Dec 2019 11:49:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/No-member-named-ToCFURL-in-IO-Location-in-AC23/m-p/275548#M3273</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2019-12-02T11:49:33Z</dc:date>
    </item>
  </channel>
</rss>

