More introspection stuff

1 view
Skip to first unread message

Joe Ranieri

unread,
Feb 11, 2006, 12:02:02 AM2/11/06
to REALs...@googlegroups.com
Features a working clone() and a much improved version of
DebugDumpObjects. I'll take a stab at serialization tonight I think =).

-- SirG3

introspection.rbp

Thomas Tempelmann

unread,
Feb 11, 2006, 3:51:15 AM2/11/06
to REALs...@googlegroups.com
On 2/11/06, Joe Ranieri <si...@sirg3.homeip.net> wrote:
> Features a working clone() and a much improved version of
> DebugDumpObjects. I'll take a stab at serialization tonight I think =).

Besides the sloppy release (would not even compile, and resizing the
window does not resize its contents) there's one very use feature in
there:

See what RB's DebugDumpObjects gives us:

647750 used in heap1
18 objects
PushButton
EditField
PushButton
mainWin
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
MenuItem
QuitMenuItem
MenuItem
MenuBar1
MDIWindow
App

And see what Joe's version gives instead:

App (&h18AA758)
MouseCursor = nil
ResourceFork = ResourceFork (&h190B9A4)
MDIWindow = MDIWindow (&h18AA490)
BalloonHelpVisible = False
MajorVersion = 1
MinorVersion = 0
BugVersion = 0
StageCode = 0
NonReleaseVersion = 0
RegionCode = 0
ShortVersion = ""
LongVersion = ""
PackageInfo = ""
MenuBar = MenuBar1 (&h18C2724)
DockItem = DockItem (&h1914DA8)
AutoQuit = False
ExecutableFile = FolderItem (&h19162FC)
CurrentThread = nil
_CurrentEventTime = 14449388

MDIWindow (&h18AA490)
Left = 0
Top = 0
Width = 0
Height = 0
MinWidth = 64
MinHeight = 64
MaxWidth = 32000
MaxHeight = 32000
Title = ""
Visible = True
Handle = 0

MenuBar1 (&h18C2724)
Name = ""
Index = -2147483648
Tag = nil
BalloonHelp = ""
DisabledBalloonHelp = ""
Text = ""
Checked = False
Enabled = True
Visible = True
CommandKey = ""
KeyboardShortcut = ""
_Bold = False
_Italic = False
_Underline = False
AutoEnable = True

MenuItem (&h1827C04)
Name = "FileMenu"
Index = -2147483648
Tag = nil
BalloonHelp = ""
DisabledBalloonHelp = ""
Text = "&File"
Checked = False
Enabled = True
Visible = True
CommandKey = ""
KeyboardShortcut = ""
_Bold = False
_Italic = False
_Underline = False
AutoEnable = True

and so on...

Appears to work with all targets, both in debugger and built apps.

Now, no one can deny how useful that is!

Thomas

Joe Ranieri

unread,
Feb 11, 2006, 7:55:56 AM2/11/06
to REALs...@googlegroups.com
>
> Besides the sloppy release (would not even compile, and resizing the
> window does not resize its contents)
>

Hah, sorry for the sloppy release, apparently I should have waited till
morning to send the email... Also, I hadn't noticed how slow the debug
call is (relatively), I'll also take a stab at optimizing that.

-- SirG3

introspection.rbp
Reply all
Reply to author
Forward
0 new messages