• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Data Formatters in 2.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data Formatters in 2.2


  • Subject: Re: Data Formatters in 2.2
  • From: James Bucanek <email@hidden>
  • Date: Fri, 2 Dec 2005 08:02:29 -0700

Jerry wrote on Friday, December 2, 2005:

>
>On 2 Dec 2005, at 09:35, Jerry wrote:
>
>> Are data formatters supposed to work in Xcode 2.2? I just get the
>> text of the formatter in the summary column in gray (e.g. %(char *)
>> $VAR.c_str():s%). Actually I've never seen data formatters work in
>> any version of XCode across any of the 3 machines I have it
>> installed on, but I gather from posts on the lists that they must
>> have worked for some people at some time.
>
>OK, I remember there being some post on the list about XCode being
>psychic, but I hadn't experienced it before. About 10 second after
>posting the above, I pressed the single step button and suddenly I
>saw a working data formatter! It only works for some variables though
>- I have an s1 and a s2 in the same function and one displays and one
>doesn't. Still, at least it's better than every variable in showing
>"incomplete type".

Data formatters work quite nicely in 2.2 and earlier versions. However, they are tres temperamental.

If you have *any* syntax error or unknown types in your formatter, it is simply ignored. There is no warning or explanation of the problem, it just doesn't work.

Be careful about the scope of member expressions. They are different in references (%...%) and expressions ({...}).

The debugger often does not know the types of return values; cast liberally:

The biggest problem I run into is with ZeroLink. Data formatter references will not cause ZeroLink to load the necessary type or class information, so if a type or class has not already been used/loaded in your application it won't work in a data formatter. I usually end up turning ZeroLink off with complex data formatters just to avoid the headaches.

--
James Bucanek
 _______________________________________________
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

References: 
 >Re: Data Formatters in 2.2 (From: Jerry <email@hidden>)

  • Prev by Date: Re: Data Formatters in 2.2
  • Next by Date: Re: proprocessing info.plist files
  • Previous by thread: Re: Data Formatters in 2.2
  • Next by thread: Re: Data Formatters in 2.2
  • Index(es):
    • Date
    • Thread