source: trunk/doc/src/snippets/code/doc_src_mac-differences.qdoc@ 244

Last change on this file since 244 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 983 bytes
Line 
1//! [0]
2QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
3//! [0]
4
5
6//! [1]
7#ifdef Q_WS_MAC
8 CFURLRef appUrlRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
9 CFStringRef macPath = CFURLCopyFileSystemPath(appUrlRef,
10 kCFURLPOSIXPathStyle);
11 const char *pathPtr = CFStringGetCStringPtr(macPath,
12 CFStringGetSystemEncoding());
13 qDebug("Path = %s", pathPtr);
14 CFRelease(appUrlRef);
15 CFRelease(macPath);
16#endif
17//! [1]
18
19
20//! [2]
21<?xml version="1.0" encoding="UTF-8"?>
22<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
23"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
24<plist version="1.0">
25<dict>
26 <key>LprojCompatibleVersion</key>
27 <string>123</string>
28 <key>LprojLocale</key>
29 <string>no</string>
30 <key>LprojRevisionLevel</key>
31 <string>1</string>
32 <key>LprojVersion</key>
33 <string>123</string>
34</dict>
35</plist>
36//! [2]
Note: See TracBrowser for help on using the repository browser.