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
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