• 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: Viewing array elements in Project Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Viewing array elements in Project Builder


  • Subject: Re: Viewing array elements in Project Builder
  • From: zauhar <email@hidden>
  • Date: Tue, 21 May 2002 14:28:38 -0400
  • Scubber-version: 1.7 (portal)

On Tuesday, May 21, 2002, at 01:55 PM, Ondra Cada wrote:

PB has nothing to do with that. Of course in gdb you always can do

p *(MyClass*)something

but in an object-oriented environment that would seldom help. Being non-object-oriented, C++ profits from exactly that, though.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc





THANKS! That's what I wanted to be able to do. I've used gdb enough in the past that I should have thought to try that.

Why do you imply that's not useful? It spills the contents of my object like so:

(gdb) p *(MMAtom *)0x2924980
$4 = {
isa = 0xc6c8,
name = 0x24326c0,
defaultColor = 0x0,
currentColor = 0x0,
style = 0x0,
chemType = 0x0,
mol2Type = 0x2924a70,
charge = 0,
localID = 17,
globalID = 16,
inAggregate = 0x0,
inResidue = 0x2924880,
inSets = 0x0,
aggregateCoord = 0x29249d0,
globalCoord = 0x2924a50,
visible = 1 '\001',
selected = 1 '\001'
}

For example, I just discovered that "inSets" is nil, which is not right. I would like it if PB would similarly report the contents of class like this when I click on the arrow next to the variable name in the variable window. Instead all I see is 'isa'. Is there some way to change the way PB displays variables?

In any event, thanks for pointing this out.

Randy



Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar

Thought for the ages:

"If you have conceptions of things that you can have no conception of,
then the conception and the thing appear to co-incide." -- C.G. Jung

Thought for the new millennium:

"Nothing is gooder than watching cartoons." -- Catherine Zauhar, age 5
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Viewing array elements in Project Builder (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Finding the firstResponder TextField or TextView
  • Next by Date: NSTextField and pasting troubles (Newbie)
  • Previous by thread: Re: Viewing array elements in Project Builder
  • Next by thread: Re: Viewing array elements in Project Builder
  • Index(es):
    • Date
    • Thread