{"id":3867,"date":"2016-04-26T11:31:46","date_gmt":"2016-04-26T03:31:46","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3867"},"modified":"2016-04-26T11:33:47","modified_gmt":"2016-04-26T03:33:47","slug":"%e6%9d%82%e8%b0%88-fmx-helpers-mac-%e5%8d%95%e5%85%83%e5%87%bd%e6%95%b0%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3867","title":{"rendered":"[\u6742\u8c08] FMX.Helpers.Mac \u5355\u5143\u51fd\u6570\u8bf4\u660e"},"content":{"rendered":"<p>\u8fd9\u4e9b\u4e1c\u897f\u6ca1\u6709\u5b98\u65b9\u6587\u6863\uff0c\u6240\u4ee5\u7eaf\u5c5e\u731c\u6d4b\uff0c\u5982\u6709\u9519\u8bef\uff0c\u80af\u8bf7\u65a7\u6b63\u3002<\/p>\n<p>FMX.Helpers.Mac \u5355\u5143\u63d0\u4f9b\u4e86 16 \u4e2a\u51fd\u6570\uff0c\u7528\u6765\u8fdb\u884c\u5e38\u89c1\u7c7b\u578b\u4e0e Delphi \u7c7b\u578b\u95f4\u7684\u8f6c\u6362\uff1a<\/p>\n<ol>\n<li>NSObjectToID<br \/>\n\u5c06\u4e00\u4e2a NSObject \u5bf9\u8c61\u8f6c\u6362\u4e3a OSX\/iOS \u7684 ID \u7c7b\u578b\uff08\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2aPointer\uff09\u3002<\/li>\n<li>GetGMTDateTime<br \/>\n\u83b7\u53d6\u5f53\u524d\u7684\u683c\u6797\u5a01\u6cbb\u65f6\u95f4<\/li>\n<li>GetTimeZone<br \/>\n\u83b7\u53d6\u5f53\u524d\u7684\u65f6\u533a<\/li>\n<li>DateTimeToNSDate<br \/>\n\u5c06\u65e5\u671f\u65f6\u95f4\u7c7b\u578b\u8f6c\u6362\u4e3a NSDate \u5bf9\u8c61<\/li>\n<li>NSDateToDateTime<br \/>\n\u5c06\u4e00\u4e2a NSDate \u5bf9\u8c61\u8f6c\u6362\u4e3a\u65e5\u671f\u65f6\u95f4\u7c7b\u578b<\/li>\n<li>NSDateToDate<br \/>\n\u5c06\u4e00\u4e2a NSDate \u5bf9\u8c61\u8f6c\u6362\u4e3a\u65e5\u671f\u5bf9\u8c61<\/li>\n<li>StrToNSStr<br \/>\n\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a NSString \u5bf9\u8c61<\/li>\n<li>NSStrToStr<br \/>\n\u5c06\u4e00\u4e2a NSString \u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/li>\n<li>StrToNSUrl<br \/>\n\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a NSUrl \u5bf9\u8c61<\/li>\n<li>NSUrlToStr<br \/>\n\u5c06\u4e00\u4e2a NSUrl \u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/li>\n<li>CFStringRefToStr<br \/>\n\u5c06\u4e00\u4e2a CFStringRef \u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/li>\n<li>NSStringToID<br \/>\n\u5c06\u4e00\u4e2a NSString \u5bf9\u8c61\u8f6c\u6362\u4e3a OSX\/iOS \u7684 ID \u7c7b\u578b\uff08\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2aPointer\uff09\u3002<\/li>\n<li>StringToID<br \/>\n\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a OSX\/iOS \u7684 ID \u7c7b\u578b\uff08\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2aPointer\uff09\u3002<\/li>\n<li>CGRectFromRect<br \/>\n\u5c06\u4e00\u4e2a\u00a0TRectF \u77e9\u5f62\u503c\u8f6c\u6362\u4e3a CGRect \u5bf9\u8c61<\/li>\n<li>RectToNSRect<br \/>\n\u5c06\u4e00\u4e2a TRect \u77e9\u5f62\u503c\u8f6c\u6362\u4e3a NSRect \u5bf9\u8c61<\/li>\n<li>CFErrorRefToDescription<br \/>\n\u83b7\u53d6\u4e00\u4e2a\u00a0CFErrorRef \u5bf9\u8c61\u7684\u9519\u8bef\u63cf\u8ff0\u5b57\u7b26\u4e32<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e9b\u4e1c\u897f\u6ca1\u6709\u5b98\u65b9\u6587\u6863\uff0c\u6240\u4ee5\u7eaf\u5c5e\u731c\u6d4b\uff0c\u5982\u6709 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8,602,21],"tags":[614,613,599,584],"class_list":["post-3867","post","type-post","status-publish","format-standard","hentry","category-delphi","category-ios","category-misc","tag-helpers","tag-mac","tag-osx","tag-584"],"views":3336,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3867"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3867\/revisions"}],"predecessor-version":[{"id":3869,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3867\/revisions\/3869"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}