I've posted a mac carbon vm 3.8.11b1U for universal to
follow links to idisk or FTP.
This VM is a result of a major cleaning done over the weekend where
a) Refactored removed old OS-9 code, always use carbon, etc, basic
housekeeping chores that were put off for a few years.
b) Removed TARGET_API_MAC_CARBON, IHAVENOHEAD
c) Made most variables static, procedures static where applicable.
d) Always use Unix file names, drop any HFS logic
e) Eradicate most usages of FSSpec, except for drop file logic (sigh)
and a specialized use in InternetConfig, and URL post/get
f) Reworked much of drag and drop logic to eradicate complaints from
the 10.4u depreciated warnings monster....
Testers should ensure drag and drop works as expected from the
finder, and Safari, also that starting the VM by cmd line,
by clicking on one or more images, or squeak documents, or drag and
drop to squeak VM in finder works as expected, and or setting the
plist.info Also someone might confirm that the MacIntel box likes
this VM, untested here on the island. I'll note I did poke a bit at
the full screen logic for the MacIntel port, perhaps it works now?
I have a NPSqueak (the squeak browser plugin) but need some brave
fellow to poke at it since it's been converted to unix file names
and refactored and greatly touched and untested in the area of URL
GET and POST logic, let alone a zillion other areas.
Likely as time permits I am going to do a paranoid pass thru the Mac
VM code to ensure bad return codes, improper values are
considered, trapped and give acceptable feedback and fprintfs to
stderr. For the most part such checks are done, but I think the level of
paranoia was not high enough. That and add the headless support, not
sure why tho....
From the readme notes:
don't bother with Gestalt, we now drag and drop exists on machines
of os-x era.
convert to use FSRef
Use GetDragAttributes versus bounds in window.
Drop WaitNextEvent, dummy up event
findImageFilterProc use get pathname and last path component to
decide if file is image
use QDLocalToGlobalRect in ioPositionOfWindow versus casting rect
make FSRef when dealing with ICFileSpec
remove some copy pascal to c calls.
drop calculateStartLocationForImage() logic
drop powerManager logic, not needed, cleanup of statics, cleanup
for browser logic
cast data right for sprintf(data,"%X",myattr);
removal of the os-9 swapfile logic
watch signed versus unsigned compares
use gCurrentVMEncoding, versus system encoding for getting file names
drop logic for start of image offset os-9 feature
drop LocalToGlobal, use fake mouse location
remove tap power manager event loop callback
In MyWindowEventMouseHandler() put back in 10.2.8 versus 10.3.9 logic
In ioSetFullScreenActual, use QDLocalToGlobalRect, versus casting
In copy124BitsTheHardWay little versus bit endian for making gworld
use QDSwapPort versus get/set port for performance reasons
In ioShowDisplayOnWindow avoid double get of windowPort
In recordMouseEvent use QDGlobalToLocalPoint
Make windowActive = 1, not sure why this didn't fail in the past...
Alter GetTempFSSpec to return both fsspec and FSRef
Update info.plists and xcode projects on SVN
Drop #ifdefs for this below, we always compile on MACH now, versus
Certain end of CodeWarrior OS-9 Support.
#if defined (__APPLE__) && defined(__MACH__)
#if defined I_AM_CARBON_EVENT
#if defined MINIMALVM (sorry Dan)
Export GetUIToLock api so we can callback from FFI on browser
plugin UI thread.
Remove #ifdefs above and references to Codewarrior 8
change logic to support Sophie Browser plugin SOPHIEVI change
logic to get bundle by bundle id when a browser plugin so we can
get bundle info.plist for startup logic and when we ask for VM
remove the gThreadManager OS-9 cooperative thread logic
browser plugin VM should not Launch Squeak VM on double click.
add getUIToLock() logic for Browser plugin support
Browser plugin loading bundles support (for squeakland and Sophie)
Fiddle with CGImageCreate 32 host endiness issues
Fix cursors data/mask on intel
info.plist for Squeak VM Universal
complete refactor of bits for Squeak browser plugin, put squeak VM
stuff in seperate file
complete refactor of bits for Squeak browser plugin, move squeak
stuff to other file.
Make work with unix file names
John M. McIntosh <[hidden email]> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
|Free forum by Nabble||Edit this page|