• 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: how to view arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to view arrays


  • Subject: Re: how to view arrays
  • From: Bob Sabiston <email@hidden>
  • Date: Sun, 27 Jul 2008 13:33:57 -0500



Thanks,

I figured out how to do it with the Expressions window. I sure hope they implement a better way in the future, viewing arrays is such a common thing to do in programming. That, and multiple search windows. Codewarrior still has Xcode beat on those fronts.

Bob


From: Brian Stern <email@hidden>
Subject: Re: how to view arrays
To: Xcode Users <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

See this thread

http://lists.apple.com/archives/xcode-users/2008/May/msg00372.html

and the section on artificial arrays on this page:

http://developer.apple.com/documentation/DeveloperTools/gdb/gdb/gdb_9.html

Not sure how that all works with a pointer to a struct but it should
work.

Good luck,

Brian


On Jul 26, 2008, at 7:42 PM, Bob Sabiston wrote:

Hello,

Say I have a pointer *P that points to a block of point structures:

struct point {
	float x,y,pressure;
}

How do I view the array of structures in Xcode?  I can't see a way
to do it.  It treats a pointer to a structure like it only points to
one of them.  How do I view the data for the whole array?  I can
view memory but that's just a block of hex numbers, it doesn't show
you the members of the structs.

Thanks
Bob


_______________________________________________
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


  • Follow-Ups:
    • Re: how to view arrays
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Static library and Objective C categories
  • Next by Date: Re: Media Library in IB 3.x & Tiger
  • Previous by thread: Re: how to view arrays
  • Next by thread: Re: how to view arrays
  • Index(es):
    • Date
    • Thread