TweetFollow Us on Twitter

One App Patches
Volume Number:8
Issue Number:6
Column Tag:C Workshop

Related Info: Calling a Code Resource Window Manager
Process Manager

One-Application Patches

How to write an application specific extension.

James W. Walker, University of South Carolina

About the author

James W. Walker earned a Ph.D in mathematics at M.I.T. He now teaches mathematics at the University of South Carolina.

Not Quite an INIT

To make a change in the behavior of all applications running on your Mac, you can use an INIT (now known as a system extension) to patch some traps. The trouble with this approach is that it has to be compatible with all of the applications, and probably imposes some overhead even in applications where it isn’t doing anything. On the other hand, you could disassemble one application and make a direct patch. Not only is that likely to be extremely difficult, you will probably have to do it over again when the next version comes out. There is a middle ground: Code resources that can be added to an application and patch traps only in that application.

Under MultiFinder or System 7, trap patches that are installed after startup time apply to only one application, because each application has its own copy of the trap dispatch table. That’s the easy part. The tricky part is, how do you get your code called in order to install the patches? What you can do is use your own version of one of the standard definition functions, such as a WDEF, MDEF, MBDF, or CDEF. In my example, I will use a WDEF, since that makes it easy to modify the appearance of windows in an application. That is the approach used by the CMaster and PopUpFuncs products.

Adding Word Wrapping and Dollar Pairs

All word processors can wrap words as you type them, but not all text editors can do so. For instance, BBEdit 2.1.3 can wrap text after you type it, but not as you type it, and the THINK C 5.0 editor cannot wrap words at all. (You probably wouldn’t want to use word wrapping while writing program code, but you might want it for long comments.) My example will patch an editor to provide a simple form of word wrapping. It will also add a little icon to the title bar of each document window, which you can click to turn wrapping on or off. This patch will work in THINK C, BBEdit, or ASLEdit+.

In order to wrap typing, we would ideally want to detect when the insertion point has passed the right edge of the window or some other preset margin, and then change a previous space character into a carriage return. However, that would be difficult to do without knowing the application’s internal data structures. Therefore, I am going to do a cruder form of word wrapping: Detect when the insertion point is within a certain distance of the right edge of the window, and then change the next space to a carriage return. This method can fail if you happen to type a really long word at the end of a line, but it usually works.

As another example of a feature that can be added with a one-application patch, I will make each typed dollar sign generate another dollar sign and a left arrow character. Sound like a crazy feature? Not if you’re typing mathematics in TEX format, which uses pairs of dollar signs to delimit mathematical formulas.

A Modular Design

The project will use four types of code resources, so that individual functions can be added or deleted without recompilation. At the top of the hierarchy (illustrated below), there is one WDEF resource. At the next level, there are OAPn resources that are called by the WDEF after each wNew message, and OAPd resources that are called by the WDEF after each wDraw message. One of the OAPn resources installs an event patch, and the other one watches the insertion point. The OAPd code draws a small icon in the window’s title bar. Finally, at the third level of the hierarchy, there are OAPe resources, which filter events. There is also a small data resource of type OAP1 which is used for communication between some of the code resources.

Each of these code resources is built as a separate THINK C project. All require MacHeaders, and some need the MacTraps library.

Figure One: Calling Hierarchy

The WDEF

In order for our WDEF to be used for standard windows, we must use the resource ID 0, and override the standard WDEF in the System. However, it calls the standard WDEF to do most of the work. I use RGetResource just in case the standard WDEF 0 is in ROM and not in the System. Incidentally, you should be aware that adding a WDEF resource might trigger virus detection code in some applications. [See Nick Pissaro article in Vol. 8, No. 2 (Virus issue) for one example. - TechEd.]

One tricky aspect of using a WDEF to patch an application is that if you use ResEdit to edit a WIND resource in that application, the custom WDEF may be called. If the WDEF patches some traps, and then ResEdit closes the file, then the traps remain patched but the patch code goes away. So the next time one of those traps is executed, it’s bomb city. I found out about this the hard way, of course.

To avoid this ResEdit problem, I use the routine No_ResEdit_Danger (see the listing of patcher WDEF.c), which checks whether the file that contains the WDEF resource is the same as the resource fork of the current application. If not, the WDEF does nothing other than call the real WDEF to handle the window. (Desk accessories are a special case. Although they act like applications in many ways under System 7, CurApRefnum is the file reference number of the System, not the DA file.)

The Wrapping Icon

The ‘OAPd’ resource, whose source code is shown in the listing of wrap icon.c, is called by my WDEF after each wDraw message for a document-style window. I have hard-coded the two possible 8 by 8 icons, though of course one could use resources instead.

Where’s the Insertion Point?

To perform word wrapping, we need to know where characters are appearing in the window. One natural approach would be to look at the pen location of the window at the time that a keyboard event is received. This works in THINK C and BBEdit, but not in ASLEdit+. You might also think of patching _DrawChar to watch as characters are drawn, but in fact these editors do not call DrawChar. The only approach I thought of that works in all three cases is to patch _InverRect and watch where the insertion point is drawn. When InvertRect is called with a rectangle of width 1, it is probably flashing the insertion point.

In the listing, you will see that the patch is installed using routines named GetToolTrapAddress and SetToolTrapAddress. These are not listed in Inside Macintosh, but are defined in the standard header file OSUtils.h. They simply provide a more efficient interface to the same trap routines used by NGetTrapAddress and NSetTrapAddress.

Assembly Glue

Some folks will insist that when you patch traps, you should save and restore every blessed register. Others will point out that Inside Mac says that stack-based toolbox routines need not preserve registers A0, A1, D0, D1, or D2, so a patch on such traps shouldn’t need to preserve those registers either. In the trap patches in the InvertRect.c and events.c listings, I have taken the very conservative route of preserving all registers. If you choose not to preserve all registers, then the only register you really have to worry about is A4, which is used by THINK C to access global variables. You could begin the patch with

/* 1 */

asm {
 move.L A4, -(SP)
 LEA    main, A4
}

and end the patch with something like

/* 2 */

 asm {
 move.L Old_SystemEvent, A0
 move.L (SP)+, A4
 UNLK   A6
 JMP    (A0)
}

However, if you do it, remember that if the prior trap address is a global variable that is referenced using register A4, then you had better use that value before you restore the original value of A4.

Watching Events

There are a number of ways you can monitor events. You can tail-patch GetNextEvent, tail-patch GetOSEvent, patch the low-memory global JGNEFilter, head-patch PostEvent, or head-patch SystemEvent, and there are probably other ways. However, these methods do not all behave the same. Patching GetNextEvent will miss events destined for desk accessories, even DAs that have been made into pseudo-applications under System 7. On the other hand, JGNEFilter is truly global, i.e., it will see events belonging to other applications. I have chosen to patch SystemEvent. For some purposes, the fact that SystemEvent doesn’t receive null events might be a disadvantage, but not for my present purpose.

The listing events.c shows the patch to SystemEvent, which passes each event to any OAPe resources that may be present.

Word Wrapping Events

The event filter listed in wrap events.c monitors keyboard events to perform word wrapping, and monitors mouse events to detect clicks in the word wrapping icon. If wrapping is on, and the event is a space character, and the insertion point is close to the margin, then the event filter changes the event to a return character. If the event is a mouse click in the wrapping icon, then the event filter toggles the wrapping state, changes the event to a null event (so that the host application won’t think you’re trying to drag the window), and causes the wrapping icon to be redrawn. Note in particular that when I call PaintOne to invalidate the wrapping icon, I save and restore the GrafPort. This is necessary because PaintOne changes to the Window Manager port, and does not restore the port afterward.

Paired Dollar Signs

The final event filter, listed in dollars.c, looks for keyDown events representing dollar sign characters, and responds to a dollar sign by posting another dollar sign event and a left arrow event. I have to be careful about this in order to avoid an infinite loop. A normal keyboard event has both a character code and a key code in the message field of the event record, but when I post the second dollar sign, I post only a character code without a key code. Then when the second dollar sign arrives at the event filter, the event filter knows it’s a fake and can be ignored. (Of course this subtlety wouldn’t occur if you paired parentheses or braces.) Note the use of PPostEvent to post the left arrow event, so that I can specify that no modifier keys are down. This is necessary because the shift key will be pressed when the first dollar sign is typed, and some editors, such as THINK C and BBEdit, assign a different meaning to a shifted arrow than to an ordinary arrow.

Other Ideas

Obviously, you could hard-wire other keyboard macros into an application using the same methods as were used to pair dollar signs. A keyboard macro could do fancier text manipulations on a selected range of text by copying the text to the clipboard, manipulating it, and pasting it back. Perhaps there are other traps you’d like to patch; for instance ASLEdit+ has a hard-coded default font, which you can change by patching GetFNum. You could even link your editor to another application, using the Process Manager to bring the other application to the front, and then posting keyboard or mouse events from the background.

Listing: defs.h
#ifndef NIL
#define NIL 0L
#endif

typedef pascal long (*WDEF_proc)( short,
 WindowPeek, short, long );

// OAPn resources are called after wNew messages
typedef void (*OAPn_proc)( void );

// OAPd resources are called after wDraw messages
typedef void (*OAPd_proc)( WindowPeek );

// OAPe resources are event filters
typedef void (*OAPe_proc)( EventRecord *event );

typedef struct { // format of 'OAP1' resource
 Booleanwrap;
 char   filler;
 short  last_insertion_point;
} Wrap_info;
Listing: patcher WDEF.c
/* -------------------------------------------
 patcher WDEF.c
 
 THINK C "Set Project Type..." settings:
 code resource, type WDEF, ID 0,
 custom header, preloaded,
 file type 'rsrc', file creator 'RSED'.
 -------------------------------------------
*/
#include "defs.h"

pascal long main( short var_code,
 WindowPeek the_window,
 short message, long param );
Boolean No_ResEdit_danger( void );

/* The one and only global variable */
static Boolean   run_needed = true;

pascal long main( short var_code,
 WindowPeek the_window,
 short message, long param )
{
 long   retval;
 Handle real_WDEF_h;
 short  save_resfile;
 SignedByte real_WDEF_state;
 WDEF_procReal_WDEF;
 Ptr    save_A4;
 Handle code_h;
 short  res_index;
 OAPn_procOAPn_p;
 OAPd_procOAPd_p;
 THz    save_zone;
 
 asm {
 move.L A4, save_A4
 LEA    main, A4 ; for access to global
 }

 save_resfile = CurResFile();
 UseResFile( SysMap );
 real_WDEF_h = RGetResource( 'WDEF', 0 );
 real_WDEF_state = HGetState( real_WDEF_h );
 HLock( real_WDEF_h );
 Real_WDEF = (WDEF_proc)
 StripAddress(*real_WDEF_h);
 UseResFile( save_resfile );
 
 /* Here's where we call the real system WDEF */
 retval = Real_WDEF( var_code, the_window,
 message, param );
 HSetState( real_WDEF_h, real_WDEF_state );

 if (No_ResEdit_danger())
 {

 save_zone = GetZone();
 SetZone( ApplicZone() );
 
 if ( (message == wNew) && run_needed )
 {
 for (res_index = 1; ; ++res_index)
 {
 code_h = GetIndResource('OAPn', res_index);
 if (code_h == NIL)
 break;
 HLock( code_h );
 OAPn_p = (OAPn_proc) StripAddress(*code_h);
 (*OAPn_p)();
 }
 run_needed = false;
 }
 
 else if ( (message == wDraw) && // draw...
 (LoWord(param) == 0) &&  // all of window
 ((var_code & 3) == 0) )  // document type
 {
 for (res_index = 1; ; ++res_index)
 {
 code_h = GetIndResource('OAPd', res_index);
 if (code_h == NIL)
 break;
 HLock( code_h );
 OAPd_p = (OAPd_proc) StripAddress(*code_h);
 (*OAPd_p)( the_window );
 }
 }
 
 SetZone( save_zone );
 }
 
 asm {
 moveA.Lsave_A4, A4
 }
 return( retval );
}
/* -------------------------------------------
 No_ResEdit_danger If the host application
 is being edited by ResEdit
 rather than executing
 normally, we do not want this WDEF to
 install any patches.
 -------------------------------------------
*/
Boolean No_ResEdit_danger( void )
{
 Handle my_h;
 short  my_resfile;
 
 my_resfile = -1;
 my_h = RecoverHandle( (Ptr) main );
 if (my_h != NIL)
 my_resfile = HomeResFile( my_h );
 return (my_resfile == CurApRefNum) ||
 (CurApRefNum == 2);
}
Listing: wrap icon.c
/* ------------------------------------------
 wrap icon.c
 
 THINK C "Set Project Type..." settings:
 code resource, type 'OAPd', ID 1000,
 custom header, preloaded and locked,
 file type 'rsrc', file creator 'RSED'.
 ------------------------------------------
*/
void main( WindowPeek the_window );

void main( WindowPeek the_window )
{
 BitMap icon_map;
 long   bits[4];
 Rect   dest;
 GrafPtrwmgr_port;
 Boolean**wrapping;
 
 if (!the_window->visible || !the_window->hilited
 || !the_window->goAwayFlag)
 return;
 
 wrapping = (Boolean **)GetResource('OAP1', 128);
 if (wrapping != NIL)
 {
 icon_map.rowBytes = 2;
 icon_map.baseAddr = (Ptr) &bits;
 icon_map.bounds.top = icon_map.bounds.left
 = 0;
 icon_map.bounds.right
 = icon_map.bounds.bottom
 = 8;
 if (**wrapping)
 {
 bits[0] = 0x00000000L;
 bits[1] = 0xFC000400L;
 bits[2] = 0x04001500L;
 bits[3] = 0x0E000400L;
 }
 else   // not wrapping
 {
 bits[0] = 0x04000200L;
 bits[1] = 0xFF000200L;
 bits[2] = 0x04000000L;
 bits[3] = 0x00000000L;
 }
 dest = (**(the_window->strucRgn)).rgnBBox;
 dest.left += 22;
 dest.top += 6;
 dest.right = dest.left + 8;
 dest.bottom = dest.top + 8;
 GetPort( &wmgr_port );
 CopyBits( &icon_map, &wmgr_port->portBits,
 &icon_map.bounds, &dest, srcCopy, NIL );
 }
}
Listing: patch InvertRect.c
/* --------------------------------------------
 patch InvertRect.c
 
 THINK C "Set Project Type..." settings:
 code resource, type 'OAPn', ID 1001,
 custom header, preloaded and locked,
 file type 'rsrc', file creator 'RSED'.
 --------------------------------------------
*/
#include <Traps.h>
#include "defs.h"

void main(void);
void My_InverRect( void );

/* -------- global variables ---------- */
long  Old_InverRect = NIL;

void main(void)
{
 long   save_A4;
 
 asm {
 move.L A4, save_A4
 LEA    main, A4
 }

 if (Old_InverRect == NIL)
 {
 Old_InverRect = GetToolTrapAddress(
 _InverRect );
 SetToolTrapAddress( (long)My_InverRect,
 _InverRect );
 }
 
 asm {
 move.L save_A4, A4

 }
}


/* ---------------------------------------------
 My_InverRect    Watch for the insertion point
 to be drawn, and record its
 horizontal coordinate.
 ---------------------------------------------
*/
void My_InverRect( void )
{
 Rect   *rect;
 Wrap_info**info;
 
 asm {
 movem.La0-a5/d0-d7, -(SP); save registers
 LEA    main, A4 ; access to globals
 move.L 8(A6), rect
 }
 
 if ( rect->right - rect->left == 1 )
 {
 info = (Wrap_info **)
 GetResource('OAP1', 128);
 (**info).last_insertion_point = rect->right;
 }
 
 /*
 The following code restores all registers and
 jumps to the saved trap address.  It relies
 on there being at least 4 bytes on the stack
 frame, which can be trashed by moving the
 saved A6 down.  Bear in mind that THINK C will
 insert UNLK A6 and RTS instructions afterward.
 */
 asm {
 move.L (A6), -4(A6)
 move.L Old_InverRect, (A6)
 subQ   #4, A6
 movem.L(SP)+, A0-A5/D0-D7
 }
}
Listing: events.c
/* ------------------------------------------
 events.c
 
 THINK C "Set Project Type..." settings:
 code resource, type 'OAPn', ID 1000,
 custom header, preloaded and locked,
 file type 'rsrc', file creator 'RSED'.
 ------------------------------------------
*/
#include <Traps.h>
#include "defs.h"

void main(void);
void My_SystemEvent( void );

/* -------- global variables ---------- */
long  Old_SystemEvent = NIL;

void main(void)
{
 long   save_A4;
 
 asm {
 move.L A4, save_A4
 LEA    main, A4
 }

 if (Old_SystemEvent == NIL)
 {
 Old_SystemEvent = GetToolTrapAddress(
 _SystemEvent );
 SetToolTrapAddress( (long)My_SystemEvent,
 _SystemEvent );
 }
 
 asm {
 move.L save_A4, A4
 }
}

/* ------------------------------------------
 My_SystemEvent  This head patch watches
 events.
 ------------------------------------------
*/
void My_SystemEvent( void )
{
 EventRecord*evt;
 WindowPeek front;
 short  res_index;
 Handle code_h;
 OAPe_procEvent_filter;
 
 asm {
 movem.La0-a5/d0-d7, -(SP); save registers
 LEA    main, A4 ; access to globals
 move.L 8(A6), evt ; copy event pointer
 }
 
 front = (WindowPeek) FrontWindow();
 if ( (front != NIL) &&
 (front->windowKind != 2) && front->visible &&
 front->hilited && front->goAwayFlag )
 {
 for (res_index = 1; ; ++res_index)
 {
 code_h = GetIndResource( 'OAPe', res_index );
 if (code_h == NIL)
 break;
 Event_filter = (OAPe_proc)
 StripAddress(*code_h);
 Event_filter( evt );
 }
 }
 
 asm {
 move.L (A6), -4(A6)
 move.L Old_SystemEvent, (A6)
 subQ   #4, A6
 movem.L(SP)+, A0-A5/D0-D7
 }
}
Listing: wrap events.c
/* ---------------------------------------------
 wrap events.c Watch keyboard events to do
 word wrapping, and watch mouse
 events to handle clicks in the
 wrap icon.
 
 THINK C "Set Project Type..." settings:
 code resource, type 'OAPe', ID 1000,
 custom header, preloaded and locked,
 file type 'rsrc', file creator 'RSED'.
 ---------------------------------------------
*/
#include <Script.h>
#include "defs.h"
void main( EventRecord *evt );

#define RETURN_MESSAGE    0x0002240DL
#define WRAP_FACTOR10
#define SCROLLBAR_WIDTH   16
#define MODIFIER_KEYS0x1F00

void main( EventRecord *evt )
{
 WindowPeek front;
 Wrap_info**wrap_info;
 Rect   icon_rect;
 RgnHandleredraw_rgn;
 GrafPtrsave_port;
 short  wrap_margin, font_size;
 
 wrap_info = (Wrap_info **)
 GetResource( 'OAP1', 128 );
 if (wrap_info == NIL)
 return;
 front = (WindowPeek) FrontWindow();
 
 if ( (evt->what == keyDown) &&
 ((evt->message & charCodeMask) == ' ') &&
 ((evt->modifiers & MODIFIER_KEYS) == 0) &&
 ((**wrap_info).wrap) )
 {
 font_size = front->port.txSize;
 if (font_size == 0)
 font_size = GetDefFontSize();
 wrap_margin = font_size * WRAP_FACTOR
 + SCROLLBAR_WIDTH;
 if ( (**wrap_info).last_insertion_point >
 front->port.portRect.right - wrap_margin )
 {
 (**wrap_info).last_insertion_point = 0;
 evt->message = RETURN_MESSAGE;
 }
 } // end if keyDown && space

 else if (evt->what == mouseDown)
 {
 /*
 If the click was in our little icon in the
 window's title bar, then toggle the wrapping
 state.
 */
 icon_rect = (**(front->strucRgn)).rgnBBox;
 icon_rect.left += 22;
 icon_rect.top += 6;
 icon_rect.right = icon_rect.left + 8;
 icon_rect.bottom = icon_rect.top + 8;
 
 if (PtInRect( evt->where, &icon_rect ))
 {
 evt->what = nullEvent;
 (**wrap_info).wrap = !(**wrap_info).wrap;
 ChangedResource( (Handle) wrap_info );
 
 redraw_rgn = NewRgn();
 RectRgn( redraw_rgn, &icon_rect );
 GetPort( &save_port );
 PaintOne( front, redraw_rgn );
 SetPort( save_port );
 DisposeRgn( redraw_rgn );
 }
 } // end if mouseDown
 
}
Listing: dollars.c
/* ---------------------------------------------
 dollars.cWhen a dollar sign is typed, type
 another oneand then a left arrow.
 
 THINK C "Set Project Type..." settings:
 code resource, type 'OAPe', ID 1001,
 custom header, preloaded and locked,
 file type 'rsrc', file creator 'RSED'.
 ---------------------------------------------
*/
void main( EventRecord *evt );

#define LEFT_ARROW_MESSAGE0x00027B1CL

void main( EventRecord *event )
{
 EvQEl  *event_q_data;

 /*
 In this case we have to be careful to avoid
 causing an infinite loop, so we post an
 abnormal dollar message, with no key code.
 */

 if ( (event->what == keyDown) &&
 ((event->message & charCodeMask) == '$') &&
 (event->message != '$') )
 {
 PostEvent( keyDown, '$' );
 PPostEvent( keyDown, LEFT_ARROW_MESSAGE,
 &event_q_data );
 event_q_data->evtQModifiers = 0;
 }
}

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Luminar 3.0.1 - Powerful, adaptive, conf...
Luminar is the new full-featured image editor that adapts to the way you edit photos. Over 300 essential tools to fix, edit, and enhance your photos with comfort. The future of photo editing is here... Read more
iMazing 2.8.5 - 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
OnyX 3.5.7 - Maintenance and optimizatio...
OnyX is a multifunction utility that you can use to verify the startup disk and the structure of its system files, to run miscellaneous maintenance and cleaning tasks, to configure parameters in the... Read more
TeamViewer 14.1.9025 - Establish remote...
TeamViewer gives you remote control of any computer or Mac over the Internet within seconds or can be used for online meetings. Find out why more than 200 million users trust TeamViewer! Free for non... Read more
Deeper 2.4.0 - Enable hidden features in...
Deeper is a personalization utility for macOS which allows you to enable and disable the hidden functions of the Finder, Dock, QuickTime, Safari, iTunes, login window, Spotlight, and many of Apple's... Read more
A Better Finder Attributes 6.16 - Change...
A Better Finder Attributes 6 allows you to change JPEG & RAW shooting dates, JPEG EXIF meta-data tags, file creation & modification dates, file flags and deal with invisible files. Correct... Read more
Boom 3D 1.2.3 - 3D surround sound and ph...
Boom 3D is a revolutionary app with 3D Surround Sound and phenomenally rich and intense audio that is realistic and works on any headphones. Features 3D surround sound Built-in audio player... Read more
Dash 4.6.1 - Instant search and offline...
Dash is an API documentation browser and code snippet manager. Dash helps you store snippets of code, as well as instantly search and browse documentation for almost any API you might use (for a full... Read more
iClock 4.6.5 - Customizable menu bar clo...
iClock replaces the old Apple's default menu bar clock with more features, customization and increases your productivity. Features: Have your Apple or Google calendar instantly available from the... Read more
Fantastical 2 2.5.7 - Create calendar ev...
Fantastical is the Mac calendar you'll actually enjoy using. Creating an event with Fantastical is quick, easy, and fun: Open Fantastical with a single click or keystroke Type in your event details... Read more

Latest Forum Discussions

See All

PGC London '19: Kaijack Card Attack...
What would happen if giant monsters were indestructible? Wait, let me rephrase that. What would happen if giant monsters were real and indestructible? The answer, according to Kaijack Card Attack, is that they'd play a gamw somewhere between... | Read more »
Pre-register now for epic fantasy RPG Fi...
Final Blade is an epic fantasy RPG that revolves around two warring nations and one extremely powerful sword. Having already found great success in Taiwan and South Korea, the developer is now bringing its acclaimed free-to-play iOS and Android... | Read more »
The top 3 best iPhone and iPad games com...
The end of the week has rolled around. It's been a pretty good seven days for mobile gaming - if you want proof you can click here and check out our five favorite games that came out this week - but now we're going to turn our attention to the... | Read more »
The best games for iPhone and iPad that...
Every week here at 148Apps we like to make sure that you're up to date with all the awesome games that have come out for iPhone and iPad over the past 7 days. We pick the cream of the crop to ensure that you don't have to play anything boring and... | Read more »
The top 3 best idle games for iPhone and...
Sometimes you want to play a game where you don't really have to do anything. Don't worry, we're not here to judge you, we're exactly the same. We love some action when we're in the right mood, but sometimes we want something a little more chill -... | Read more »
The top 5 best games with great stories...
Last week we took a look at the best games for iOS that you could waste hours and hours of your life playing, so now we thought we'd have a look at the top 5 games for iPhone and iPad that have great stories. These are the tales that have stuck... | Read more »
Langrisser Mobile preview - Seminal TRPG...
Langrisser Mobile is set to finally break the revolutionary TRPG franchise's 20 year silence when the it finally makes its way to touchscreens the world over at the end of the month. The original Langrisser game (known as Warsong in the west)... | Read more »
Everything you need to win at Dragalia L...
Want to up your Dragalia Lost game? You've come to the right place. Here at 148Apps, we've been digging deep into Nintendo's latest gacha game to find the best tips, tricks, and strategies to share with all of our future co-op team mates (read: you... | Read more »
How will World of Warcraft, Starcraft, a...
You might have heard that Blizzard is bringing Diablo to mobile with Diablo Ultimate. There's been plenty of controversy surrounding that decision, and it's meant that a really important piece of information has been glossed over a little. Namely... | Read more »
The top 3 best iPhone and iPad games com...
Our mission here at 148Apps is pretty simple - we want to make sure that you're playing the best iPhone and iPad games in the world. Which is why, every Friday, we like to give you an insight into the incredible games that are set to rock your... | Read more »

Price Scanner via MacPrices.net

T-Mobile offers customers 64GB Apple iPhone X...
Trade in an eligible phone at T-Mobile, plus sign up for their $30/month Unlimited plan, and they will include a 64GB iPhone Xr for just $10/month extra for up to 4 lines. That’s $40 per month,... Read more
Amazon offers blowout prices on 10.5″ Apple i...
Amazon has 10.5″ Apple iPad Pros on sale for $150 off MSRP this week, with prices starting at $499. These are the cheapest prices currently available for 10″ iPad Pros from any Apple reseller, and... Read more
Lowest Apple Mac mini price ever: Only $379 t...
B&H Photo has previous-generation 1.4GHz Mac minis available today for $379 including free shipping. That’s $120 off original MSRP for this model, and it’s the cheapest price we’ve ever seen for... Read more
Space Gray and Silver 2018 13″ 1.6GHz/256GB M...
B&H Photo has new Space Gray and Silver 2018 13″ 1.6GHz/256GB MacBook Airs on sale for $100 off MSRP, or $1299. Their prices are the lowest available for these new models from any Apple reseller... Read more
Amazon has 2018 9.7″ Apple iPads on sale toda...
Amazon is offering 9.7″ WiFi iPads with Apple Pencil Support for $30 off MSRP today, with prices starting at $299. These are the same iPads found in Apple’s retail and online stores: – 9.7″ 32GB WiFi... Read more
Amazon has 2018 9.7″ Apple iPads on sale toda...
Amazon is offering 9.7″ WiFi iPads with Apple Pencil Support for $30 off MSRP today, with prices starting at $299. These are the same iPads found in Apple’s retail and online stores: – 9.7″ 32GB WiFi... Read more
Get a clearance 10.5″ iPad Pro from Apple sta...
Apple has Certified Refurbished 2017 10.5″ iPad Pros available for $100-$170 off original MSRP, depending on the model. An Apple one-year warranty is included with each model, shipping is free, and... Read more
Get a clearance 10.5″ iPad Pro from Apple sta...
Apple has Certified Refurbished 2017 10.5″ iPad Pros available for $100-$170 off original MSRP, depending on the model. An Apple one-year warranty is included with each model, shipping is free, and... Read more
B&H has 2017 13″ MacBook Airs on sale sta...
B&H Photo has 2017 13″ 1.8GHz MacBook Airs available today for $100-$270 off MSRP, with models available starting at $899. Shipping is free: – 13″ 1.8GHz/128GB MacBook Air (MQD32LL/A): $899, $100... Read more
B&H has 2017 13″ MacBook Airs on sale sta...
B&H Photo has 2017 13″ 1.8GHz MacBook Airs available today for $100-$270 off MSRP, with models available starting at $899. Shipping is free: – 13″ 1.8GHz/128GB MacBook Air (MQD32LL/A): $899, $100... Read more

Jobs Board

Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1044618 Date:Today Job Read more
Sephora Product Consultant - *Apple* Blosso...
Sephora Product Consultant - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1056553 Date:Today Job Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1042611 Date:Today Job Description Read more
Omni-Channel Associate - *Apple* Blossom Ma...
Omni-Channel Associate - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1074107 Date:Today Job Read more
Home Commission Associate - *Apple* Blossom...
Home Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1079517 Date:October Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.