[MD1] Raven 1.5

Raven is a free C++ application framework similar to PowerPlant and MacApp.
The changes in 1.5 are as follows:

Known Bugs:

* Stack crawl doesn't have symbol names if virtual memory is on.

* DTS has confirmed a bug in the 1.0.1 Appearance Extension: if a window's
procID is kWindowModalDialogProc or kWindowAlertProc the window is not
actually modal (ie the user can switch out of the app).

* When using native floating windows the NavServices dialogs don't activate
until they're clicked (OS 8.5f2). Note that this is reproducible with the
Nav Services sample code.
+ CustomGetFile seems to hang if InitFloatingWindows is called (OS 8.5f2).

+ The SIOUX window won't drag if a floater is visible (this is a SIOUX bug).

+ The example projects were built using the 3.2 Universal Headers. If
you're not
using these headers you'll need to remove WindowsLib and ControlsLib in order
to build any of the examples.

* For the next version of Raven I hope to use a cross platform portability
layer.
This will likely be packaged as a stand alone class library. It will contain
most of the features found in Raven's Foundation and Core layers. To prepare
the way I've made the following changes:

* Raven's naming conventions have been simplified: classes consisting of only
static methods use the standard T prefix instead of U. Mixin classes start
with T instead of M and end in Mixin. The new library will use X for cross
platform classes, M for Mac classes, and W for Win32 classes. * Removed
HAS_ANSI_EXCEPTIONS and the typedefs mapping standard exception
classes to Raven style names.

* Dropped TLongPoint, TLongSize, and TLongRect. Changed TPoint, TSize, and
TRect so that they use int32. (Note that this will work better in Carbon
as well as Win32). The only problem with doing this is interfacing to the
toolbox. I originaly retained the conversion operators using 8-item static
buffers, but this could lead to nasty bugs if the item was still in use when
the buffer wrapped around. So, by default, the conversion operators are
disabled
(you can define IMPLICIT_GEOM_CONV to enable them). If you need to interface to
the toolbox you need to use either GetOSPoint or GetOSRect.

* Disabled streaming of TPoint, TSize, and TRect. This was done because it's
not always possible to determine if a saved object is 16 or 32 bits. To
stream these objects you can make use of temporary objects defined in
ZStreaming.h. They're used like this: stream )) TSize16(mSize) and stream
(( TPoint32(mDelta).
This involves a lot of renaming so I've created a drag and drop app called
BatchRenamer to handle the tedious bits. Note that TLongPoint, TLongSize,
and
TLongRect are not renamed since you'll want to handle these differently if
they're streamed.

+ All example projects/targets weak link to InterfaceLib. You'll have to do
this as
well if you want to run on Systems prior to 8.5.

Bug Fixes and Design Changes:

+ Made significant changes to TDropApp:

- TDropApp now handles iterating over files in folders.

- The error reporting has been significantly improved. For example, the user
will now be told which file the app was working on if an exception occurs.

- mErrorExit, mCancelExit, and mNumProcessedFiles members have been added to
enable better messages when the app exits.

+ TApplication::HandleInit calls AddDialogFilter (instead of the ctor).
This avoids an ASSERT in TApplication::Invariant if a dialog was posed
while the app was initializing.

+ Fixed the TRACEFLOW in TCommanderMixin::HandleMenuCommand (it was printing a
std::string without using c_str).

+ Tweaked TFloatingDesktop::SelectWindow so that it works if there are pending
activate events.

+ TDesktop::AutoPosition correctly handles cases where modal dialog is
offset from
another modal.

+ ZBuildWindowRegions builds the window regions if the window is invisible
OR the
structure region is empty (used to be AND which could fail if the app was
hidden).

+ TRowSelection::HandleNewTableSize zaps the current selection.

+ Tweaked TPopupMenu so that it no longer ASSERTs when reanimated with
empty menu.

+ TPopupMenu mutators invalidate instead of letting the Control Manager
redraw the
control (note that the old code wasn't setting up the port so the Control
Manager
wound up drawing the menu in weird places).

+ Made lot's of changes for OS 8.5. Note that this code is all wrapped in
#if's so
you don't need the 8.5 Universal Headers. If you are using the new headers
you'll
need to weak link to ControlsLib and WindowsLib. The changes include:

- ZFloatingWindow.cpp will use native floating windows if they're installed. If
you set NATIVE_FLOATING_WINDOWS to 0 the old floating window code will be used.

- Floating windows are now hidden when modal dialogs appear. (I would
prefer the
old way where floaters are merely disabled but I experienced lot's of problems
with window activation when I tried this).

- Before using Dialog Manager dialogs and alerts you need to create a
TDeativateDesktop
object.

- Added TWindow::AnimatedShow and AnimatedHide. These let you show and hide
windows with a theme specific animation.

- Moved TBuildWindowRegions into ZWindow.cpp. Added (disabled) code to replace
stuff that used TBuildWindowRegions (it's disabled because GetWindowRegion
doesn't seem to be working quite right in OS 8.5f2).

- Added TScrollBar::SetViewSize (for proportional scrollbars). (Note that with
OS 8.5f2 proportional scroll bars are only enabled if you select the smart
scrolling option). TScroller calls this as needed.

- TScrollBar uses the new live scrollbar proc type if the Appearance Manager is
installed (which means the icky code in ZThumbTracker isn't used).

- TScrollBar and TMacControl use the 32-bit Control Manager functions.

- ZCursor.cpp uses theme cursors for non-animated cursors wherever possible.
(Appearance.h includes a function called SetAnimatedThemeCursor for animated
cursors but it can't be called at interrupt time).

- Added commented out call to
BeginThemeDragSound(kThemeDragSoundDragging) in
TDragSourceMixin::OnDragStart. (It's commented out because I'm reluctant to
include it if users can't disable it and it's not at all clear that the Sound
panel in the Appearance control panel handles this case (and I can't test this
because 8.5f2 only includes the platinum theme which apparently doesn't
include a kThemeDragSoundDragging sound)).

- TFileSystem::GetVolumeTotalBytes and GetVolumeFreeBytes use PBXGetVolInfoSync
(works better with HFS+).

+ TMacControl::OnDraw uses DrawControlInCurrentPort if Appearance 1.1 or
later (didn't
seem to work properly in 1.0).

+ TFocusRectExtension only draws dimmed rings if the owner is a latent
comamnder.

+ TTracker will optionally call BeginThemeDragSound.

+ Added TMenu::IsSeperator.

+ Made some changes to TFileSystem:

- Replaced ResolveAlias(FSSpec) with ResolveSpec. This has a slightly different
API (hence the name change) and is based on the code in TN FL 30 "Resolving
Alias Files Quietly". (This is only used prior to OS 8.5).

- Added HasDataFork and HasRsrcFork.

- Added IsWritable. In addition to seeing if the file can be opened with write
permission this will check to see if the volume is locked, if the file doesn't
yet exist, and the 'ckid' resource.

- Added TFileSystem::LaunchApp overload that takes a TFileSpec pointing to
the app
to launch.

+ Changed Ask and AnswerYes non-AM alerts so that default button is at
bottom right.

+ Tweaked TRecordSound:

- Added work around for 5400 siLevelMeterOnOff bug.

- Switches to mic input source when running System 8.1

+ Changed profiling code:

- Added a warning to ZProfiler.h because the MetroWerk's profiler
apparently uses
shorts internally so that it's easy to cause it to overflow as numFunctions
grows
large. This causes all manner of strange results...

+ Created ZMath.h and inc. Includes vector and statistics template
functions (most of
the vector functions were moved from TVector).

+ Added Replace (string, string, string) to ZStringUtils.h

+ Added uint32 overload of Random.

+ Added Win implementations of BreakToDebugger and BreakStrToDebugger

Quill:

+ The window editor now allows you to specify that the window doesn't have
a zoom box.

+ Can specify whether windows will be erased with theme brush or content color.

+ Modal windows can now be resizable (note that they'll have size boxes
only for
Appearance Mgr 1.0.1 and above).

+ Pane edit dialog is now resizable.

+ Uses new AnimatedShow and Hide calls.

+ Popup menu id can now be set to zero if you want to start with an empty
menu (ie
you want to add all the items at runtime).

+ Quill pops up an alert if the file isn't writable and not locked (if it's
locked
the OS will pop up an alert when the file is opened).

-- Jesse

Community Search:

MacTech Search:

Software Updates via MacUpdate

Bookends 12.5.8 - Reference management a...

Bookends is a full-featured bibliography/reference and information-management system for students and professionals.
Access the power of Bookends directly from Mellel, Nisus Writer Pro, or MS Word (... Read more

Chromium 44.0.2403.125 - Fast and stable...

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web.
Version 44.0.2403.125:
This release contains a number... Read more

iMazing 1.2.2 - Complete iOS device mana...

iMazing (was DiskAid) is the ultimate iOS device manager with capabilities far beyond what iTunes offers. With iMazing and your iOS device (iPhone, iPad, or iPod), you can:
Copy music to and from... Read more

Audio Hijack 3.2.0 - Record and enhance...

Audio Hijack (was Audio Hijack Pro) drastically changes the way you use audio on your computer, giving you the freedom to listen to audio when you want and how you want. Record and enhance any audio... Read more

FontExplorer X Pro 5.0.1 - Font manageme...

FontExplorer X Pro is optimized for professional use; it's the solution that gives you the power you need to manage all your fonts.
Now you can more easily manage, activate and organize your... Read more

Calcbot 1.0.2 - Intelligent calculator a...

Calcbot is an intelligent calculator and unit converter for the rest of us. Featuring an easy-to-read history tape, expression view, intuitive conversion, and much more!
Features
History Tape -... Read more

MTR 5.0.0.1 - The Mac's oldest and...

MTR (was MacTheRipper)--the Mac's oldest and smartest DVD-backup app--is now updated to version 5.001
MTR -- the complete toolbox, not a one-trick, point-and-click extractor. MTR is intended for... Read more

LibreOffice 4.4.5.2 - Free, open-source...

LibreOffice is an office suite (word processor, spreadsheet, presentations, drawing tool) compatible with other major office suites. The Document Foundation is coordinating development and... Read more

Adobe Lightroom 6.1.1 - Import, develop,...

Adobe Lightroom is available as part of Adobe Creative Cloud for as little as $9.99/month bundled with Photoshop CC as part of the photography package. Lightroom 6 is also available for purchase as a... Read more

File Juicer 4.41 - Extract images, video...

File Juicer is a drag-and-drop can opener and data archaeologist. Its specialty is to find and extract images, video, audio, or text from files which are hard to open in other ways.
It finds and... Read more

Bandai Namco has released Pac-Man Championship Edition DX on iOS and Android, which features the classic arcade gameplay that we've all grown to love.
Pac-Man Championship Edition DX can be enjoyed in much shorter bursts than the arcade versions... | Read more »

Angel Stone is Fincon's follow up to the massively successful Hello Hero and is out now on iOS and Android.
You play as a member of The Resistance, a group of mighty human warriors who have risen up in defiance of the Demon horde threatening to... | Read more »

The not exactly rumors were true and the birds are back. Angry Birds 2 has come to the App Store and the world will... well I suppose it'll still be the same, but now we have more bird-flinging options!
[Read more]
| Read more »

You Could Design Your Own Card for Chain...

If you've ever wanted to create your own item, weapon, trap, or even monster for Chainsaw Warrior: Lords of the Night, this is your chance. Auroch Digital is currently holding a contest so that fans can fight to the death (not really) to see which... | Read more »

Bitcoin Billionaire is Going Back in Tim...

If you thought you managed to buy everything there is to buy in Bitcoin Billionaire and make all the money, well you though wrong. Those of you who made it far enough might remember investing in time travel - and it looks like that investment is... | Read more »

Domino Drop (Games)

Domino Drop 1.0
Device: iOS Universal
Category: Games
Price: $1.99, Version: 1.0 (iTunes)
Description:
Domino Drop is a delightful new puzzle game with dominos and gravity!Learn how to play it in a minute, master it day by day.Your... | Read more »

Best Buy has iPad Air 2s on sale for up to $100 off MSRP on their online store for a limited time. Choose free shipping or free local store pickup (if available). Sale prices available for online... Read more

B&H Photo has the 13″ 1.6GHz/128GB MacBook Air on sale for $899.99 including free shipping plus NY tax only. Their price is $100 off MSRP, and it’s the lowest price available for this model.... Read more

Worldwide Tablet Market Decline Continues, Ap...

The worldwide tablet market declined -7.0% year-over-year in the second quarter of 2015 (2Q15) with shipments totaling 44.7 million units according to preliminary data from the International Data... Read more

The Apple Store has Apple Certified Refurbished iPad Air 2s available for up to $140 off the price of new models. Apple’s one-year warranty is included with each model, and shipping is free:
- 128GB... Read more

Updated Apple iPad Price Trackers

We’ve updated our iPad Air Price Tracker and our iPad mini Price Tracker with the latest information on prices and availability from Apple and other resellers.
Read more

Apple refurbished 2014 13-inch 128GB MacBook...

The Apple Store has Apple Certified Refurbished 2014 13″ MacBook Airs available starting at $759. An Apple one-year warranty is included with each MacBook, and shipping is free:
- 13″ 1.4GHz/128GB... Read more

Apple’s Education discount saves up to $300 o...

Purchase a new Mac or iPad at The Apple Store for Education and take up to $300 off MSRP. All teachers, students, and staff of any educational institution qualify for the discount. Shipping is free,... Read more

MacTech is a registered trademark of Xplain Corporation. Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, Apple Expo, MacTech Central, MacTech Domains, MacNews, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders. Not responsible for typographical errors.

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.