diff --git a/samples/docview/Info.plist b/samples/docview/Info.plist
new file mode 100755
index 0000000000..9bf4d70624
--- /dev/null
+++ b/samples/docview/Info.plist
@@ -0,0 +1,87 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ English
+ CFBundleDocumentTypes
+
+
+ CFBundleTypeExtensions
+
+ drw
+
+ CFBundleTypeIconFile
+ chart.icns
+ CFBundleTypeName
+ DocView Drawing
+ CFBundleTypeOSTypes
+
+ WXMB
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleTypeExtensions
+
+ txt
+ text
+
+ CFBundleTypeIconFile
+ notepad.icns
+ CFBundleTypeName
+ DocView Text
+ CFBundleTypeOSTypes
+
+ TEXT
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleExecutable
+ $(PRODUCT_NAME)
+ CFBundleGetInfoString
+ $(PRODUCT_NAME) version 2.9.0, (c) 2005-2008 wxWidgets
+ CFBundleIconFile
+ doc
+ CFBundleIdentifier
+ org.wxwidgets.samples.$(PRODUCT_NAME)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLocalizations
+
+ de
+ en
+ fr
+ it
+
+ CFBundleLongVersionString
+ 2.9.0, (c) 2005-2008 wxWidgets
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 2.9.0
+ CFBundleSignature
+ WXMA
+ CFBundleVersion
+ 2.9.0
+ CSResourcesFileMapped
+
+ LSRequiresCarbon
+
+ NSHumanReadableCopyright
+ Copyright 2005-2008 wxWidgets
+
+
diff --git a/samples/docview/Info.plist.in b/samples/docview/Info.plist.in
new file mode 100644
index 0000000000..95180eada6
--- /dev/null
+++ b/samples/docview/Info.plist.in
@@ -0,0 +1,87 @@
+
+
+
+
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleIdentifier
+ org.wxwindows.IDENTIFIER
+ CFBundleDevelopmentRegion
+ English
+ CFBundleLocalizations
+
+ de
+ en
+ fr
+ it
+
+ CFBundleDocumentTypes
+
+
+ CFBundleTypeExtensions
+
+ drw
+
+ CFBundleTypeIconFile
+ chart.icns
+ CFBundleTypeName
+ DocView Drawing
+ CFBundleTypeOSTypes
+
+ WXMB
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleTypeExtensions
+
+ txt
+ text
+
+ CFBundleTypeIconFile
+ notepad.icns
+ CFBundleTypeName
+ DocView Text
+ CFBundleTypeOSTypes
+
+ TEXT
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleExecutable
+ EXECUTABLE
+ CFBundleIconFile
+ doc.icns
+ CFBundleName
+ EXECUTABLE
+ CFBundlePackageType
+ APPL
+ CFBundleSignature
+ WXMA
+ CFBundleVersion
+ VERSION
+ CFBundleShortVersionString
+ VERSION
+ CFBundleGetInfoString
+ EXECUTABLE version VERSION, (c) 2002-2008 wxWidgets
+ CFBundleLongVersionString
+ VERSION, (c) 2002-2008 wxWidgets
+ NSHumanReadableCopyright
+ Copyright 2002-2008 wxWidgets
+ LSRequiresCarbon
+
+ CSResourcesFileMapped
+
+
+
diff --git a/samples/docview/Makefile.in b/samples/docview/Makefile.in
index 80f89472c5..8be62dac88 100644
--- a/samples/docview/Makefile.in
+++ b/samples/docview/Makefile.in
@@ -163,7 +163,7 @@ docview$(EXEEXT): $(DOCVIEW_OBJECTS) $(__docview___win32rc)
$(__docview___os2_emxbindcmd)
$(SAMPLES_RPATH_POSTLINK)
-@COND_PLATFORM_MACOSX_1@docview.app/Contents/PkgInfo: docview$(EXEEXT) $(top_srcdir)/src/osx/carbon/Info.plist.in $(top_srcdir)/src/osx/carbon/wxmac.icns
+@COND_PLATFORM_MACOSX_1@docview.app/Contents/PkgInfo: docview$(EXEEXT) $(srcdir)/Info.plist.in $(srcdir)/chart.icns $(srcdir)/doc.icns $(srcdir)/notepad.icns
@COND_PLATFORM_MACOSX_1@ mkdir -p docview.app/Contents
@COND_PLATFORM_MACOSX_1@ mkdir -p docview.app/Contents/MacOS
@COND_PLATFORM_MACOSX_1@ mkdir -p docview.app/Contents/Resources
@@ -172,7 +172,7 @@ docview$(EXEEXT): $(DOCVIEW_OBJECTS) $(__docview___win32rc)
@COND_PLATFORM_MACOSX_1@ sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
@COND_PLATFORM_MACOSX_1@ -e "s/EXECUTABLE/docview/" \
@COND_PLATFORM_MACOSX_1@ -e "s/VERSION/$(WX_VERSION)/" \
-@COND_PLATFORM_MACOSX_1@ $(top_srcdir)/src/osx/carbon/Info.plist.in >docview.app/Contents/Info.plist
+@COND_PLATFORM_MACOSX_1@ $(srcdir)/Info.plist.in >docview.app/Contents/Info.plist
@COND_PLATFORM_MACOSX_1@
@COND_PLATFORM_MACOSX_1@
@COND_PLATFORM_MACOSX_1@ echo -n "APPL????" >docview.app/Contents/PkgInfo
@@ -181,7 +181,7 @@ docview$(EXEEXT): $(DOCVIEW_OBJECTS) $(__docview___win32rc)
@COND_PLATFORM_MACOSX_1@ ln -f docview$(EXEEXT) docview.app/Contents/MacOS/docview
@COND_PLATFORM_MACOSX_1@
@COND_PLATFORM_MACOSX_1@
-@COND_PLATFORM_MACOSX_1@ cp -f $(top_srcdir)/src/osx/carbon/wxmac.icns docview.app/Contents/Resources/wxmac.icns
+@COND_PLATFORM_MACOSX_1@ cp -f $(srcdir)/chart.icns $(srcdir)/doc.icns $(srcdir)/notepad.icns docview.app/Contents/Resources
@COND_PLATFORM_MACOSX_1@docview_bundle: $(____docview_BUNDLE_TGT_REF_DEP)
@@ -198,6 +198,15 @@ docview_docview_rc.o: $(srcdir)/docview.rc
$(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
+$(srcdir)/include/wx/stc/stc.h: \
+$(srcdir)/src/stc/scintilla/include/Scintilla.iface \
+$(srcdir)/src/stc/stc.cpp.in \
+$(srcdir)/src/stc/stc.h.in \
+$(srcdir)/src/stc/gen_iface.py
+ cd $(srcdir)/src/stc && ./gen_iface.py
+monolib_stc.o monodll_stc.o stcdll_stc.o stclib_stc.o: \
+$(srcdir)/include/wx/stc/stc.h
+
# Include dependency info, if present:
@IF_GNU_MAKE@-include .deps/*.d
diff --git a/samples/docview/chart.icns b/samples/docview/chart.icns
new file mode 100644
index 0000000000..3624c0cde7
Binary files /dev/null and b/samples/docview/chart.icns differ
diff --git a/samples/docview/doc.icns b/samples/docview/doc.icns
new file mode 100644
index 0000000000..7cda58e0b3
Binary files /dev/null and b/samples/docview/doc.icns differ
diff --git a/samples/docview/docview.bkl b/samples/docview/docview.bkl
index 62ba8dc77d..1edbffd24f 100644
--- a/samples/docview/docview.bkl
+++ b/samples/docview/docview.bkl
@@ -1,6 +1,9 @@
+ $(SRCDIR)/Info.plist.in
+ $(SRCDIR)/chart.icns $(SRCDIR)/doc.icns $(SRCDIR)/notepad.icns
+
diff --git a/samples/docview/notepad.icns b/samples/docview/notepad.icns
new file mode 100644
index 0000000000..69ea4a378f
Binary files /dev/null and b/samples/docview/notepad.icns differ