Re: wchardataformatter not working
Re: wchardataformatter not working
- Subject: Re: wchardataformatter not working
- From: Jeff Heyob <email@hidden>
- Date: Tue, 6 Jul 2010 10:55:21 -0400
Philippe,
Your data formatter post for std::wstring is how I learned about the
PPC build error, but I'm still lost in the woods.
Here is my (in)sanity check:
1. start with a clean download of Apple's "wchardataformatter" project,
2. XCode quit,
3. remove/delete any/all data formatters from "/Library/Application
Support/Apple/Developer Tools/CustomDataViews/",
3. double-click the "wchardataformatter.xcodeproj" icon,
4. Get "wchardataformatter" project info,
5. Set "Architectures" to "32/64-bit Universal" for debug and release
builds,
6. Close project info,
7. Get "wchardataformatter" target info,
8. Set "Architectures" to "32/64-bit Universal" for debug and release
builds,
9. Close target info,
10. Clean All Targets including dependencies and precompiled headers,
11. Build "wchardataformatter/release",
12. Check build results for "CreateUniversalBinary" and "Build
succeeded",
13. Quit XCode,
14. Get Info on "wchardataformatter.bundle" to verify universal build
did work,
15. Copy "wchardataformatter.bundle" into my user "/Library/
Application Support/Apple/Developer Tools/CustomDataViews/ directory,
16. double-click the "wchardataformatter.xcodeproj" icon to relaunch
XCode,
17. Build "wcharTest/debug",
18. Fix build warning: incompatible implicit declaration of built-in
function 'strlen' by adding "#include <string.h" to "wcharTest_main.c"
19. Build "wcharTest/debug" again,
20. Set breakpoint at first line in wcharTest_main.c / main(...)
21. Debug "wcharTest",
22. Single-step through code and note local variable values and
summaries (wait > 1 minute to allow for processing delay), stop on
'return' line,
23. Results: variable 'b' values match variable 'a' summary, variable
'c' summary is blank, variable 'b' summary is '[255]', variable 'd'
summary is blank.
What did I miss?
Thanks,
Jeff
On Jul 6, 2010, at 12:54 AM, Philippe Casgrain wrote:
Hi Jeff,
Check out http://developer.casgrain.com/?p=43 where I tackle this
exact problem.
Philippe
Le 2010-07-05 à 23:26, Jeff Heyob a écrit :
Hi,
I trying to build and install a data formatter in XCode 3.1.4 on
Leopard 10.5.8 on a MacBook.
This is my first time at trying to do a data formatter for XCode
and can't get Apple's example "wchardataformatter" project to work.
I found out that the project was compiling in PPC and switched it
to Universal. Also added #include <string.h> to the test program,
but that is where any progress stops. I've tried installing the
dataformatter bundle in both my user level and common level "/
Library/Application Support/Apple/Developer Tools/CustomDataViews/"
directories. I have "Enable Data Formatters" selected and I've
restarted XCode after installing the formatter in the
CustomDataViews directory. I have printf debug statements inside of
each formatter function to try to track the formatter action, but
it seems that it is not loading.
Is there something obvious that I need to do?
Am I'm missing something with the bundle loading?
I would appreciate any suggestions or advice.
Thanks in advance,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden