TweetFollow Us on Twitter

Dock Tile Imaging using JDirect

Volume Number: 19 (2003)
Issue Number: 1
Column Tag: Java

Dock Tile Imaging using JDirect

A pure Java approach to changing a Java application's dock tile at runtime

by Andrew S. Downs

Overview

A previous article ("Dock Tile Imaging", MacTech June 2002) discussed using the Java Native Interface technology to dynamically change the dock tile for a Java application. This article illustrates an alternate approach: the use of Apple's JDirect technology to make the native API calls directly from Java without writing any C code. This eliminates the need for a shared library and the scaffolding to call functions in that library.

The application discussed in this article periodically fetches a new image from NASA's Kennedy Space Center video feed web page. The source page contains links to 15 channels (images). The application parses the source page to find the individual image links, then sequentially downloads each image. In addition to displaying each retrieved image, the application paints a countdown progress bar in the tile between fetches. This progress bar painting uses the QuickDraw API, called via JDirect.

Application startup

The JDirectDockTiler class contains main(), the entry point for the Java application. main() is used simply to instantiate the DockTiler class and invoke an instance method. DockTiler creates an instance of UrlDownloader, which fetches an image from a URL. UrlDownloader invokes a method in DockTiler, passing it the image bytes. Some of the code in this class is reused from the June 2002 article, but is not discussed again. Download the accompanying source files for this article, refer to the previous article, or send me email if you need more info.

The import statements include two Macintosh Runtime for Java (MRJ) packages, one of which is JDirect. The other package, macos.frameworks, contains declarations for the Carbon and ApplicationServices interfaces.

import com.apple.mrj.jdirect.*;
import com.apple.mrj.macos.frameworks.*;
public class JDirectDockTiler {
  public static void main (String args[]) {
    DockTiler dock = new DockTiler();
    dock.run();
  }
}
class DockTiler {

If we have trouble loading an image, the values of its width and height will remain -1. See loadImage().

  int mWidth = -1, mHeight = -1;

The pixels are stored as a 1-dimensional array of integers. Three bytes of the int contain the RGB values, while the fourth byte contains the alpha (transparency) value.

  int mPixels[];
  public DockTiler() {
  }

Instantiate a class that handles periodic image fetching and display.

  public void run() {
    UrlDownloader u = new UrlDownloader( this );
    u.setUrl( 
  "http://spaceflight.nasa.gov/realdata/ksclive/index.html" 
    );

This substring will be located in the fetched page. This is a potential problem if the source page content changes, since then our substring search may stop working. This is a good candidate for a property in an external file.

    u.setSearchString( "http://science.ksc.nasa.gov" );

The number of iterations indicates how many times the substring occurs in the page. This is another potential trouble spot that could result in something breaking.

    u.setIterations( 15 );

Fortunately, the Thread sleep interval is entirely within our control. The value 5000 shown here indicates the Thread should sleep for 5 seconds between invocations.

    u.setSleep( 5000 );
    u.start();
  }
  static Frame f = null;
  static PictureFrame pf = null;

This version of loadImage() differs from the JNI version in that it uses an array of bytes to create an image. Also, the grabPixels() completion checking is slightly more complicated in order to prevent partial or blank images from occurring.

  protected void loadImage( byte [] array ) {
    Image image = 
      Toolkit.getDefaultToolkit().createImage( array );
    if ( f != null && pf != null )
      f.remove( pf );
      
    if ( f == null )
      f = new Frame( "Image" );
    
        // Offscreen windows move onscreen when you change the dock settings.
        // Keeping it onscreen allows you to view the original image as well 
        // as the dock tile.
    f.setBounds( 50, 50, 200, 200 ); // onscreen
    // f.setBounds( -250, -250, 200, 200 ); // offscreen
    f.setLayout( new BorderLayout() );
    pf = new PictureFrame( image );
    
    f.add( "Center", pf );
    pf.setSize( 128, 128 );
    f.pack();
    f.setVisible( true );
    f.repaint();
    pf.repaint();
    
    int width = image.getWidth( pf );
    int height = image.getHeight( pf );
    
    if ( width < 0 || height < 0 )
      return;
      
    mPixels = new int[ width * height ];
    
    for ( int i = 0; i < width * height; i++ )
      mPixels[ i ] = 0;
      
    PixelGrabber pg = new PixelGrabber( image, 0, 0, width, 
      height, mPixels, 0, width );
      
    try {
      pg.grabPixels();
    
      while ( ( pg.getStatus() & ImageObserver.ALLBITS ) 
        == 0 ) {
        if ( ( pg.getStatus() & ImageObserver.ABORT ) 
          != 0 )
          return;
        Thread.sleep( 3000 );
      }
      
      mWidth = width;
      mHeight = height;
    }
    catch ( InterruptedException e ) {
      return;
    }
    
    if ( mWidth > 0 && mHeight > 0 )
      ImageUtils.setDockTile( mPixels, mWidth, mHeight );
  }
}

Retrieving images

There are undoubtedly third party, or perhaps Sun-provided, classes that can fetch and parse HTML pages, but the one discussed here contains the necessary functionality for this app.

The methods in this class:

    - fetch a page at a given URL

    - locate image links with a page

    - fetch an image at a specified URL

public class UrlDownloader {

The following attributes have corresponding accessors (not shown):

  String mUrl = "";
  
  int mSleep = 0;
  String searchString = "";
  static int mCount = 0;   

This corresponds to the number of iterations.

  static int max = 1;

This attribute is set from the constructor, but could also be done with an accessor:

  DockTiler tiler;
  
  UrlDownloader( DockTiler dt ) {
    tiler = dt;
  }
  public void start() {
    downloadPage();

Timer is the actual Thread, and is discussed further down.

    Timer t = new Timer( this, mSleep );
    t.run();
  }

This buffer holds the raw downloaded page content.

  StringBuffer sb = new StringBuffer();

This method uses a URL string to open a connection and download the content of that page.

  protected void downloadPage() {
    try {
      URL url = new URL( mUrl );
      URLConnection conn = url.openConnection();
      int length = conn.getContentLength();
      BufferedInputStream is = 
        new BufferedInputStream( url.openStream() );    
      
      int total = 0;
      int numRead = 1;

Rather than read the page as one huge chunk of data, read 1k pieces and append them to the buffer.

      while ( numRead > 0 && total < length ) {
        byte array[] = new byte[ 1024 ];
        numRead = is.read( array, 0, 1024 );
        total += numRead;
        String s = new String( array );
        sb.append( s );
      }
    }
    catch ( MalformedURLException e ) {
      System.out.println( e );
    }
    catch ( IOException e ) {
      System.out.println( e );
    }
  }

This method gets called by the timer Thread. It dispatches to methods that locate the next occurrence of the search string on the page, fetch the appropriate image, then call back to DockTiler to display to image.

  protected void fetch() {
    String s = parseUrl();
    byte array[] = fetchImage( s );
    tiler.loadImage( array );
  }
  
  protected String parseUrl() {
    String url = new String();

Update the current image number. Reset after reaching the total number of image links on the page.

    mCount++;
    
    if ( mCount > max )
      mCount = 1;
    
    int occurence = 0;
    int last = 0;
    
    String page = sb.toString();
    
    int index = 0, prevIndex = 0;

Find the beginning of the next image link on the page.

    while ( occurence < mCount ) {
      index = page.indexOf( searchString, prevIndex );
      prevIndex = index + 1;
      occurence++;
    }

Find the end of the link: a quote character.

    if ( index > 0 )
      url = page.substring( index, 
        page.indexOf( "\"", index + 1 ) );
    return url;
  }
  protected byte[] fetchImage( String imageUrl ) {

Return a 1-byte array in lieu of an error code in case of failure.

    byte array[] = new byte[ 1 ];
    
    if ( !imageUrl.startsWith( "http" ) ) {
      System.out.println( "Bad URL: " + imageUrl );
      return array;
    }
    
    try {

This is similar to how we fetched the page contents above, except that readFully() eliminates the loop.

      URL url = new URL( imageUrl );
      URLConnection conn = url.openConnection();
      int length = conn.getContentLength();
    
      array = new byte[ length ];
    
      DataInputStream is = 
        new DataInputStream( url.openStream() );    
    
      int total = 0;
      int numRead = 1;
      is.readFully( array );
    }
    catch ( MalformedURLException e ) {
      System.out.println( "Bad URL: " + imageUrl );
      array = new byte[ 1 ];
    }
    catch ( IOException e ) {
      System.out.println( e );
    }
    catch ( NegativeArraySizeException e ) {
      System.out.println( "Bad array size: " + e );
      array = new byte[ 1 ];
    }
    
    return array;
  }
}

This simple timer class calls the fetch() dispatch function, then sleeps for 1/100th of the specified Thread sleep time. In between, it updates the progress bar at the bottom of the dock tile image. Upon reaching 100% of the sleep interval, start another fetch cycle. To remove the progress bar updates, uncomment the specified Thread.sleep() call and remove the while {} loop.

class Timer implements Runnable {
  UrlDownloader mUrlDownloader = null;
  int mSleep = 5000;
  
  Timer( UrlDownloader u, int sleep ) {
    mUrlDownloader = u;
    mSleep = sleep;
  }
  
  public void run() {
    while ( true ) {
      try {
        mUrlDownloader.fetch();
            // Replace following block with this line to avoid drawing of progress bar.
            // Thread.sleep( mSleep );
        int total = 0;
        int i = 0;
        float interval = mSleep / 100;
        
        while ( i <= 100 ) {
          ImageUtils.updateProgressBar( ( int )i );
          Thread.sleep( ( int )interval );
          i++;
        }
      }
      catch ( InterruptedException e ) {
      }
    }
  }
}

Calling Quartz

The ImageUtils class provides Java access to various native Mac OS API calls, such as the Quartz 2D (Core Graphics) library. The imports before the class definition include the JDirect package (containing the Linker class that is used to register the native methods) and the macos.frameworks package (which defines the Carbon and ApplicationServices interfaces):

import com.apple.mrj.jdirect.*;
import com.apple.mrj.macos.frameworks.*;
public class ImageUtils implements Carbon, ApplicationServices {

The Linker constructor call registers the native methods declared in this class as JNI methods:

  private static final Object linkage = 
    new Linker( ImageUtils.class );

The Mac OS calls must be declared explicitly. Argument names are not important here. I used letters as placeholders, but if you intend to reuse such a class it may make sense to provide more descriptive names and possibly comments or documentation so you don't have to revisit the API documentation each time. These two Core Graphics declarations illustrate native methods without and with arguments:

  public static native int 
    BeginCGContextForApplicationDockTile();
  public static native int CGDataProviderCreateWithData( 
    int a, int [] b, int c, int d );

The non-native method setDockTile() draws an image using the Core Graphics API. The arguments include an array of integers (4-bytes) representing the RGBA values for each pixel, and the image width and height.

  static protected void setDockTile( int [] imagePixels, 
    int width, int height ) {

This value defines the number of bytes in each pixel:

    int kNumComponents = 4;

This is somewhat annoying, having to redefine the constant values already defined by the API:

    final int kCGImageAlphaFirst = 4;
    final int kCGRenderingIntentDefault = 0;

If you look at the API docs, you will notice that many of the values used or returned by the native calls are pointers. In JDirect (as in JNI), pointers map to the int data type. This call gets the graphics context for the current application's dock tile:

    int theContext =
      BeginCGContextForApplicationDockTile();
    if ( theContext != 0 ) {

The number of bytes comprising one row of the image may be calculated using the number of pixels per row and the number of bytes per pixel:

      int bytesPerRow = width * kNumComponents;

Create a data source using the pixel array passed in as the image source. Then create an RGB color space object.

      int theProvider = CGDataProviderCreateWithData( 0, 
        imagePixels, ( bytesPerRow * height ), 0 );
  
      int theColorspace = CGColorSpaceCreateDeviceRGB();
    

Now create the image. This is similar to creating a PixMap. The symbol kCGImageAlphaFirst specifies that in the pixel data, the alpha channel (transparency) value is in the first byte of each int. More information can be found at: http://developer.apple.com/techpubs/macosx/CoreTechnologies/graphics/Quartz2D/Quartz_2D_Ref/index.html.

      int theImage = CGImageCreate( width, height, 8, 32, 
        bytesPerRow, theColorspace, 
        kCGImageAlphaFirst, theProvider, 0, 0, 
        kCGRenderingIntentDefault );

Cleanup by explicitly releasing pointers to native objects. We could have left this until the end and cleaned up all resources at the same time.

      CGDataProviderRelease( theProvider );
      CGColorSpaceRelease( theColorspace );

Use the newly created image as the tile image:

      int theError = 
        SetApplicationDockTileImage( theImage );

Flush to ensure the pixels get written:

      CGContextFlush( theContext );

Finally, free the native image and the drawing context:

      CGImageRelease( theImage );
      EndCGContextForApplicationDockTile( theContext );
    }
  }

Calling QuickDraw

This portion of the ImageUtils class is used to paint a progress bar over bottom of the image in the dock tile while the application sleeps prior to fetching a new image.

The QuickDraw Toolbox declarations look the same as the Core Graphics method declarations just discussed. However, since QuickDraw uses non-opaque data structures in various places this set of declarations includes as arguments, for example, an array of shorts to represent a native Rect.

  public static native int 
    BeginQDContextForApplicationDockTile();
  public static native int GetPortBounds( int port, 
    short [] rect );
  public static native void SetRect( short [] r, 
    short left, short top, short right, short bottom );

Several color constants defined in the Toolbox must be defined here as well before they can be used:

  static final int  blackColor          = 33;
  static final int  redColor            = 205;
  static final int  greenColor          = 341;

The progress bar is a 10-pixel tall rectangle superimposed on the lower-edge of the dock tile. The background of the progress bar is red, with a black frame. Each update fills a larger percentage of the bar with green.

  static protected void updateProgressBar( 
    int currPercent ) {

First obtain a reference to the tile drawing surface:

    int thePort = BeginQDContextForApplicationDockTile();
    if ( thePort != 0 ) {

Next, create an instance of a Rect class (discussed in the next section). That rectangle will hold the boundaries of the drawing surface.

      Rect theRect = new Rect();
      GetPortBounds( thePort, theRect.getArray() );

The initial call simply frames the empty red rectangle:

      if ( currPercent == 0 ) {
        SetRect( theRect.getArray(), theRect.getLeft(), 
          ( short )( theRect.getBottom() - ( short )10 ), 
          theRect.getRight(), theRect.getBottom() );
        ForeColor( redColor );
        PaintRect( theRect.getArray() );
        ForeColor( blackColor );
        FrameRect( theRect.getArray() );
      }

The right edge of the bar must be calculated using the current percent complete and the width of the bar in pixels. The right edge is treated as a float because of the fractions encountered during the calculation.

      float right = 0;
      if ( currPercent >= 100 )
        right = ( float )theRect.getRight();
      else
        right = ( ( ( float )theRect.getRight() - 
          ( float )theRect.getLeft() ) / 
          ( float )100 ) * ( float )currPercent;

Fill the "percent complete" area with green. The right edge value calculated above gets cast to a short data type and used to define the rectangle to be painted:

      ForeColor( greenColor );
      SetRect( theRect.getArray(), 
        ( short )( theRect.getLeft() + 1 ), 
        ( short )( theRect.getBottom() - 9 ), 
        ( short )right, 
        ( short )( theRect.getBottom() - 1 ) );
      PaintRect( theRect.getArray() );

Flush the bits to the screen and cleanup:

      QDFlushPortBuffer( thePort, 0 );
      EndQDContextForApplicationDockTile( thePort );
    }
  }
}

Rect Support Class

JDirect relies on various Toolbox structures that exist in native Mac OS libraries, but need to be explicitly defined for use with JDirect. Here is one way to define a class that corresponds to the Rect data structure:

public class Rect {
  private short [] theRect = new short[ 4 ];

The four corners of the Rect are stored in an array whose sequence we arbitrarily define as:

theRect[ 0 ] = Left
theRect[ 1 ] = Top
theRect[ 2 ] = Right
theRect[ 3 ] = Bottom

The storage assignments are arbitrary because access to the actual values is provided through accessor methods only, such as:

  public short getLeft() {
    return theRect[ 0 ];
  }
  
  public void setLeft( short i ) {
    theRect[ 0 ] = i;
  }

The constructor initializes the fields. The explicit casts to the short (16-bit) data type convert each 0 value, which defaults to type int (32-bit).

  public Rect() {
    setLeft( ( short )0 );
    setTop( ( short )0 );
    setRight( ( short )0 );
    setBottom( ( short )0 );
  }

A more compact though implementation of this class could eliminate the accessor methods and allow direct access to the data values, perhaps as four short values. That exposure may lead to problems should you wish to change the internal data representation. Always try to hide the internals of a class and enforce access through an API.

A more complex get/set combination that hides the internal representation can be implemented using constant values to represent each corner, as in:

  static final int kLeft = 0, kTop = 1, kRight = 2,
    kBottom = 3;
  public short get( short corner ) {
    if ( corner >= kLeft && corner <= kRight )
      return theRect[ corner ];
    else
              // Not good because 0 is a valid value for any corner.
      return 0;
  }
  
  public void set( short corner, short i ) {
    if ( corner >= kLeft && corner <= kRight )
      theRect[ corner ] = i;
          // What if the caller passes a bad corner identifier?
  }

Although the variations just discussed have their merits, the Rect implementation for this project uses explicit get/set methods for each corner of the Rect. The class definition is slightly longer, but more forgiving, than an implementation requiring the caller to specify a numeric value for a corner as an additional argument to both get/set. Also, this implementation does not expose the internal data representation.

References

The book Early Adopter Mac OS X Java (Wrox Press, Inc., November 2001) contains an excellent chapter on integrating Java with native Mac OS calls using JDirect. TechNote 2002 (http://developer.apple.com/technotes/tn/tn2002.html) also discusses this issue.

Thank you to Eric Albert, Greg Parker, and Nicholas Riley for their assistance and advice while I wrote this program at MacHack.


Andrew has been a Java fan since his first encounter with the language at the WebEdge III conference in 1996. You can reach him at andrew@downs.ws.

 
AAPL
$100.96
Apple Inc.
-0.83
MSFT
$47.52
Microsoft Corpora
+0.84
GOOG
$596.08
Google Inc.
+6.81

MacTech Search:
Community Search:

Software Updates via MacUpdate

Audio Hijack Pro 2.11.3 - Record and enh...
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 with Audio Hijack... Read more
Airfoil 4.8.9 - Send audio from any app...
Airfoil allows you to send any audio to AirPort Express units, Apple TVs, and even other Macs and PCs, all in sync! It's your audio - everywhere. With Airfoil you can take audio from any... Read more
WhatRoute 1.13.0 - Geographically trace...
WhatRoute is designed to find the names of all the routers an IP packet passes through on its way from your Mac to a destination host. It also measures the round-trip time from your Mac to the... Read more
Chromium 37.0.2062.122 - 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. FreeSMUG-Free OpenSource Mac User Group build is... Read more
Attachment Tamer 3.1.14b9 - Take control...
Attachment Tamer gives you control over attachment handling in Apple Mail. It fixes the most annoying Apple Mail flaws, ensures compatibility with other email software, and allows you to set up how... Read more
Duplicate Annihilator 5.0 - Find and del...
Duplicate Annihilator takes on the time-consuming task of comparing the images in your iPhoto library using effective algorithms to make sure that no duplicate escapes. Duplicate Annihilator detects... Read more
jAlbum Pro 12.2 - Organize your digital...
jAlbum Pro has all the features you love in jAlbum, but comes with a commercial license. With jAlbum, you can create gorgeous custom photo galleries for the Web without writing a line of code!... Read more
jAlbum 12.2 - Create custom photo galler...
With jAlbum, you can create gorgeous custom photo galleries for the Web without writing a line of code! Beginner-friendly, with pro results Simply drag and drop photos into groups, choose a design... Read more
Quicken 2015 2.0.4 - Complete personal f...
Quicken 2015 helps you manage all your personal finances in one place, so you can see where you're spending and where you can save. Quicken automatically categorizes your financial transactions,... Read more
iMazing 1.0 - Complete iOS device manage...
iMazing (formerly 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... Read more

Latest Forum Discussions

See All

View Source – HTML, JavaScript and CSS...
View Source – HTML, JavaScript and CSS 1.0 Device: iOS Universal Category: Utilities Price: $.99, Version: 1.0 (iTunes) Description: View Source is an app plus an iOS 8 Safari extension that makes it easy to do one key web developer... | Read more »
Avenged Sevenfold’s Hail To The King: De...
Avenged Sevenfold’s Hail To The King: Deathbat is Coming to iOS on October 16th Posted by Jessica Fisher on September 19th, 2014 [ permalink ] Just in time for Halloween, on October 16 Avenged Sevenfold will be launching | Read more »
Talisman Has Gone Universal – Can Now be...
Talisman Has Gone Universal – Can Now be Played on the iPhone Posted by Jessica Fisher on September 19th, 2014 [ permalink ] | Read more »
Tap Army Review
Tap Army Review By Jennifer Allen on September 19th, 2014 Our Rating: :: SHOOT EM ALLUniversal App - Designed for iPhone and iPad Mindless but fun, Tap Army is a lane-based shooter that should help you relieve some stress.   | Read more »
Monsters! Volcanoes! Loot! Epic Island f...
Monsters! Volcanoes! Loot! | Read more »
Plunder Pirates: Tips, Tricks, Strategie...
Ahoy There, Seadogs: Interested in knowing our thoughts on all this plundering and pirating? Check out our Plunder Pirates Review! Have you just downloaded the rather enjoyable pirate-em-up Plunder Pirates and are in need of some assistance? Never... | Read more »
Goat Simulator Review
Goat Simulator Review By Lee Hamlet on September 19th, 2014 Our Rating: :: THE GRUFFEST OF BILLY GOATSUniversal App - Designed for iPhone and iPad Unleash chaos as a grumpy goat in this humorous but short-lived casual game.   | Read more »
A New and Improved Wunderlist is Here fo...
A New and Improved Wunderlist is Here for iOS 8 Posted by Jessica Fisher on September 19th, 2014 [ permalink ] Universal App - Designed for iPhone and iPad | Read more »
Evernote Update for iOS 8 Adds Web Clipp...
Evernote Update for iOS 8 Adds Web Clipping, Quick Notes, and More Posted by Ellis Spice on September 19th, 2014 [ permalink ] | Read more »
Apple Names Ultimate Productivity Bundl...
Apple Names Ultimate Productivity Bundle by Readdle as the Essential Bundle on the App Store Posted by Jessica Fisher on September 19th, 2014 [ permalink | Read more »

Price Scanner via MacPrices.net

iFixIt Tears Down iPhone 6; Awards Respectabl...
iFixit notes that even the smaller 4.7″ iPhone 6 is a giant among iPhones; so big that Apple couldn’t fit it into the familiar iPhone form factor. In a welcome reversal of a recent trend to more or... Read more
Phone 6 Guide – Tips Book For Both iPhone 6...
iOS Guides has announced its latest eBook: iPhone 6 Guide. Brought to you by the expert team at iOS Guides, and written by best-selling technology author Tom Rudderham, iPhone 6 Guide is packed with... Read more
How to Upgrade iPhone iPad to iOS 8 without D...
PhoneClean, a iPhone cleaner utility offered by iMobie Inc., reveals a solution for upgrading iPhone and iPad to iOS 8 without deleting photos, apps, the new U2 album or anything. Thanks to more than... Read more
Inpaint 6 – Photo Retouching Tool Gets Faster...
TeoreX has announced Inpaint 6, a simple retouching tool for end users that helps remove scratches, watermarks, and timestamps as well as more complex objects like strangers, unwanted elements and... Read more
Worldwide PC Monitor Market Sees Growth in To...
Worldwide PC monitor shipments totaled 32.5 million units in the second quarter of 2014 (2Q14), a year-over-year decline of -2.9%, according to the International Data Corporation (IDC) Worldwide... Read more
Updated Price Trackers
We’ve updated our Mac Price Trackers with the latest information on prices, bundles, and availability on systems from Apple’s authorized internet/catalog resellers: - 15″ MacBook Pros - 13″ MacBook... Read more
Mac Pros available for up to $260 off MSRP
Adorama has Mac Pros on sale for up to $260 off MSRP. Shipping is free, and Adorama charges sales tax in NY & NJ only: - 4-core Mac Pro: $2839.99, $160 off MSRP - 6-core Mac Pro: $3739.99, $260... Read more
13-inch 2.6GHz/256GB Retina MacBook Pros avai...
B&H Photo has the 13″ 2.6GHz/256GB Retina MacBook Pro on sale for $1379 including free shipping plus NY sales tax only. Their price is $120 off MSRP. Read more
Previous-generation 15-inch 2.0GHz Retina Mac...
B&H Photo has leftover previous-generation 15″ 2.0GHz Retina MacBook Pros now available for $1599 including free shipping plus NY sales tax only. Their price is $400 off original MSRP. B&H... Read more
21″ 2.7GHz iMac available for $1179, save $12...
Adorama has 21″ 2.7GHz Hawell iMacs on sale for $1179.99 including free shipping. Their price is $120 off MSRP. NY and NJ sales tax only. Read more

Jobs Board

*Apple* Retail - Multiple Positions (US) - A...
Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, you're also the Read more
Position Opening at *Apple* - Apple (United...
**Job Summary** At the Apple Store, you connect business professionals and entrepreneurs with the tools they need in order to put Apple solutions to work in their Read more
Position Opening at *Apple* - Apple (United...
**Job Summary** The Apple Store is a retail environment like no other - uniquely focused on delivering amazing customer experiences. As an Expert, you introduce people Read more
Position Opening at *Apple* - Apple (United...
**Job Summary** As businesses discover the power of Apple computers and mobile devices, it's your job - as a Solutions Engineer - to show them how to introduce these Read more
Position Opening at *Apple* - Apple (United...
…Summary** As a Specialist, you help create the energy and excitement around Apple products, providing the right solutions and getting products into customers' hands. You Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.