TweetFollow Us on Twitter

The Road to Code: Building on a Solid Foundation

Volume Number: 24 (2008)
Issue Number: 03
Column Tag: The Road to Code

The Road to Code: Building on a Solid Foundation

Exploring the Foundation Framework

by Dave Dribin

The Foundation Framework

Now that we've gone over the basics of the Objective-C language, including classes, inheritance, and memory management, we can start to write some real code. One of the great things about developing for Mac OS X is that in addition to getting a nice language to use, you also get a lot of reusable code to use in your own applications. This can save you lots of time because you can reuse what's already present in the system.

Reusable code on Mac OS X is often grouped together in a package called a framework. A framework is similar to a dynamically linked library (DLL) on Windows or a shared object (.so) on most other Unix platforms in that it contains shared code that may be used by multiple applications. Frameworks have one important difference: they may contain more than just code. Typically they will contain the header files needed to use the shared code, but they can also include other resources, such as images or sounds. Mac OS X ships with many frameworks for a number of purposes, including text manipulation, graphics, sound, and networking. All the system-supplied frameworks are located in the /System/Library/Frameworks directory. Some of these are C-based while some are Objective-C. The main Objective-C framework that provides classes used in all Objective-C applications is called the Foundation framework, or just Foundation for short. You've already been using part of the code in Foundation: NSObject. In this article, we'll be exploring some of the other popular Foundation classes.

Strings

A string is a collection of characters used to represent human text. We've been using strings when we use the printf function:

    printf("Hello world\n");

The text between, and including, the double quotes is called a string, i.e. "Hello world\n". We haven't really gone over how strings are implemented in C, so let's dive down a bit deeper.

Strings in C are an array of characters. The built-in type for text characters in C is char. The char type holds a signed integer between -128 and 127. You can assign a single character to a variable of type char using single quotes, and you can print out an individual character in printf with the %c formatting specification:

    char letterA = 'A';
    printf("Character: %c\n", letterA);

The output for this would be:

Character: A

So, if a string is an array of characters, you may think you would declare the array for "hello" as follows:

    char hello[5];
    hello[0] = 'h';
    hello[1] = 'e';
    hello[2] = 'l';
    hello[3] = 'l';
    hello[4] = 'o';

This is close, but there's one major issue. There's no way to determine the length of an array in C, thus there's no way to determine the end of a string. Those clever C designers thought up a way around this by using what's called the null character. The null character has the integer value of zero and may be entered directly with single quotes using backslash zero, \0. In C, strings must end with a null character, thus the correct way to define an array for "hello" is:

    char hello[6];
    hello[0] = 'h';
    hello[1] = 'e';
    hello[2] = 'l';
    hello[3] = 'l';
    hello[4] = 'o';
    hello[5] = '\0';

Because the last character in the array is the null character, strings in C are called null-terminated strings. The standard C library has many string functions. One such function is strlen, which returns the length of the string. There are many more, but we won't be covering them here because, as we will see, Objective-C handles strings differently than C.

C provides a shorthand notation for initializing arrays in one step, so we can alternately initialize the array:

    char hello[] = {'h', 'e', 'l', 'l', 'o', '\0'};

This syntax allows us to drop the array size, as the compiler can figure it out for you. Even though this syntax is better than before, it's still cumbersome. That's where the double quotes come in. We can use double quotes to represent the exact same thing:

    char hello[] = "hello";

The double quote syntax is called a C string literal. Just keep in mind that under the hood, string literals are still just null-terminated char arrays. Remember, too, that arrays are nearly the same as pointers in C, so yet another way to write this would be:

    char * hello = "hello";

This char * type is the way you will see most strings declared in C. Often you will see const char *, too:

    const char * hello = "hello";

The const keyword means that the contents of the string are constant and may not be modified. To print null-terminated strings using printf, use the %s formatting specification:

    printf("Say: %s\n", hello);

While the null character and double quote syntax solve many issues of strings in C, they have one serious weakness that's not so easy to overcome: Unicode.

Unicode

Above, I mentioned that the char type holds an integer between -128 and 127. This means that every character needs an equivalent number value. The translation between number and text character is called an encoding. Back when C was invented, the most popular encoding was called American Standard Code for Information Interchange, or ASCII for short. ASCII encoded the English alphabet in upper and lower case, the digits 0 through 9 and a few other characters used for controlling teletype terminals. ASCII only has 127 characters specified, which is perfect for the char type. The problem with ASCII is that it only works for the English alphabet. It doesn't provide a way to represent accented characters or non-English alphabets, such as Russian, Greek, or any of the Asian languages, including Chinese or Japanese.

To solve this problem, computer scientists from around the world came together and created a master list of all human characters on Earth. The result is called Unicode, specifically the Universal Character Set. As you may imagine, the number of characters far exceeds the 255 available numbers of the char type. But these computer scientists were really smart. They created multiple Unicode encodings that map the Unicode code points (the Unicode terminology for character) into different tables. One such encoding is called UTF-8, and it's specifically designed for ASCII-based null-terminated systems, like C strings.

While using UTF-8 in C strings makes it possible to use Unicode in C, it's far from ideal. Many standard C functions don't work quite right with UTF-8, and dealing with UTF-8 for lots of string data can be slow. Because of this, Objective-C strings are not based on C strings.

By the way, fully covering Unicode and the different Unicode encodings would be an article in its own right. I'm only covering the basics needed to understand strings in C and Objective-C. If you want to learn more about Unicode, there are plenty of good resources on the Internet.

Objective-C Strings

To get around many of the limitations of C strings, Objective-C includes its own string class called NSString as part of the Foundation framework. You can create a new NSString instance from a UTF-8 encoded C string using the stringWithUTF8String: method:

    NSString * hello =
        [NSString stringWithUTF8String: "hello"];

Remember from our previous article on memory management that this class method creates an autoreleased instance of NSString. This means you don't have to worry about retaining or releasing it, so long as you are finished using it before the autorelease pool is released. There's a corresponding instance method constructor you can use, if you don't want an autoreleased object:

    NSString * hello =
        [[NSString alloc] initWithUTF8String: "hello"];
    // Must call [hello release] when finished

While these are very handy for using the C string literals we've already been using, it's a bit long-winded for regular use. Thankfully, Objective-C also has its own syntax for string literals. It uses double quotes like C strings, but it uses an at sign ('@') before the first double quote:

    NSString * hello = @"hello";

Notice that using the Objective-C syntax results in an instance of the NSString class. String literal instances are not autoreleased, but you shouldn't release them, either. They are allocated automatically before the main function is called and are automatically released when your application exits.

The nice thing about Objective-C strings is that they are full-blown objects. This means you can call methods on string instances. For example, to get the length of the string, you would use the length method:

    printf("NSString length: %d\n", [hello length]);

If you want to get a UTF-8 string for use with C functions, you can use the UTF8String method:

    printf("Say: %s\n", [hello UTF8String]);

Keep in mind the memory returned from UTF8String is also autoreleased. If you need it to stick around longer than the current autorelease pool cycle, you'll need to copy it into a new C string.

This is just the tip of the iceberg on what you can do with NSString. It's a very powerful class and works well with Unicode. As such, there are many more methods available. Since strings are so heavily used, we will no doubt be using more of these methods. I will explain them as we encounter them, but consult the documentation for a list of all available methods.

NSLog

As you saw above, to print out an NSString with printf, we had to convert it into a UTF-8 string. Not only is this a bit of a pain, but it can also be inefficient to convert the string into a new encoding. Unfortunately, since printf was designed only for C code, it cannot natively handle NSStrings. The Foundation framework comes with its own printing function called NSLog. It works very similarly to printf in that you can give it a string to print; however, you must pass it an NSString instead of a const char * C string:

   NSLog(@"Hello world");

The output is a little different than printf. First, it automatically includes a newline on the end, so you do not need to use \n as the last character. It also includes extra information, such as the date and time, before the message. Here's the output when I ran the code above:

2008-01-07 15:30:35.539 objcstrings[13448:10b] Hello world

You can also use all the printf-style percent formatting specifications, like %d and %s. But it also comes with a new formatting specifier for Objective-C strings: %@. You would use it like this:

    NSString * hello = @"hello";
    NSLog(@"Say: %@", hello);

The resulting output should be similar to:

2008-01-07 15:39:46.147 objcstrings[13486:10b] Say: hello

Even though NSLog prints extra stuff, you will often see it used in Objective-C code rather than printf. This is mainly because the extra stuff printed is helpful for debugging GUI applications. If you want more control over the output of your text, you'll have to use printf with the UTF8String method. Since we are still writing command line applications, for now, I will use printf as the output has a lot less clutter.

Modifying Objective-C Strings

An NSString instance is not modifiable, meaning you cannot change the text of the string. You can create a new string, but you cannot modify its contents directly. A fancier way to say "not modifiable" is immutable. Thus NSString instances are said to be immutable. There is a class called NSMutableString that creates a string whose contents may be modified directly. There is no shortcut way to create them, so you must use one of the constructor methods. One of the methods to change the string is the appendString: method, which adds text to the existing text:

    NSMutableString * helloWorld =
        [NSMutableString stringWithString: @"hello"];
    [helloWorld appendString: @" world"];

This results in the string @"hello world". NSMutableString is a subclass of NSString. This means you can call any method of an NSString such as UTF8String:

    printf("Say: %s\n", [helloWorld UTF8String]);

Remember from our article on inheritance that you can use a subclass instance anywhere a superclass is used. Thus, you can pass in an NSMutableString anywhere an NSString is required.

Collections

While the string classes of the Foundation framework are extremely popular, the next most popular classes are called collections. Collections are classes whose sole purpose is to hold other objects. There are different collection classes depending on your needs, and we'll be looking at arrays and dictionaries.

Arrays

In previous articles, we've covered arrays in C. Arrays hold multiple values of the same type. C arrays are very limited in their functionality, though, and it's easy to use them incorrectly. The Foundation framework has a class for arrays named NSArray. It holds zero or more Objective-C objects and remembers their order. It is similar to an array in C, but it is a lot more flexible. To create an array you can use the arrayWithObjects: constructor:

    NSArray * colors = [NSArray arrayWithObjects:
                        @"red", @"green", @"blue", nil];

This method creates an autoreleased array with three string elements. Note that the list of elements in the constructor is terminated with nil. It is important to not forget the terminating nil. If you do, you will most likely crash your program.

You can access individual elements of the array with the objectAtIndex: method. Just like C arrays, the index of the first element is 0, thus to access the second element, you'd use an index of 1:

    NSString * green = [colors objectAtIndex: 1];

You can find out how many elements are in the array with the count method. Combining these two methods with a for loop, we print all the elements:

int i;

for (i = 0; i < [colors count]; i++)

{

NSString * color = [colors objectAtIndex: i];

printf("Color %d: %s\n", i, [color UTF8String]);

}

This should give you the following output:

Color 0: red
Color 1: green
Color 2: blue

NSArray objects are immutable. Just like NSString, there is a mutable subclass: NSMutableArray. A common method of mutable arrays is addObject: that adds an object to the end of the array:

    NSMutableArray * animals = [NSMutableArray array];
    [animals addObject: @"cat"];
    [animals addObject: @"dog"];

Again, there are far more methods to NSArray and NSMutableArray to cover here, but you've learned enough to get you started.

Dictionaries

Another popular collection is the dictionary. Dictionaries manage pairs of keys and values. Dictionaries can also efficiently look up values by their keys. In other languages, dictionaries are known as hash tables or associative arrays. You can think of a dictionary as a lookup table. For example, let's say we have a table of countries and their capitol city:

Table 1: Countries and their capitals
Country            Capitol   
United States      Washington, D.C.   
England            London   
France             Paris   

Let's say we wanted to use the information in Table 1 to create a lookup table so we could quickly find the capital of a country. We could use a dictionary to do this. Each row in the table is a key/value pair. The country is the key, since that is what we are using as the lookup, and the capitol is the value.

The Foundation framework has a class called NSDictionary that is a dictionary implementation, with one minor change: it calls values "objects". We can create a new dictionary with the dictionaryWithObjectsAndKeys: class method, set the countries to be the keys, and set the capitals to be the values, or objects, as NSDictionary likes to call them:

    NSDictionary * capitals =
        [NSDictionary dictionaryWithObjectsAndKeys:
         @"Washington, D.C.", @"United States",
         @"London", @"England",
         @"Paris", @"France",
         nil];

Note again the key/value pair list is terminated with a nil. With this dictionary, we can now look up a capital (object) given a country (key) using the objectForKey: method:

    NSString * capital = [capitals objectForKey: @"England"];
    printf("Capital of England is %s\n", [capitol UTF8String]);

If the key has no corresponding object, then it returns nil.

As with arrays and strings, NSDictionary is immutable. If you want an updateable dictionary, use the NSMutableDictionary subclass.

Loose Ends

All collection classes retain their objects. This means that after you add an object to an array or dictionary, you may release your instance of it, if you no longer need it. The collection classes will release an object when it is removed from the collection, or they will release all their objects when they themselves get deallocated.

One downside to the collection classes in Foundation is that they can only hold Objective-C objects. This means that you cannot put standard C types, or primitive types, such as int and float, directly into a collection. Luckily, Objective-C has wrapper classes for primitive types, one of them being NSNumber. NSNumber is an immutable class that holds any primitive number type. Here's how you would put the integer 42 into an NSNumber, and then get it back out again:

    NSNumber * theAnswer = [NSNumber numberWithInt: 42];
    printf("The answer is %d\n", [theAnswer intValue]);

Since NSNumber is a full-blown Objective-C class, you can use it to put primitive numbers into arrays and dictionaries. I will demonstrate this shortly.

Election Counting

Putting together everything we've learned in this article, we're going to write a small application that tallies votes for an election. This seems rather fitting with 2008 being an election year in the United States. However, instead of voting for president, let's take a poll that asks people to vote on their favorite fruit. Since counting up votes can be tedious, we'd like to write an application to tally up the results. Using the classes in Foundation, this is actually pretty easy! Listing 1 shows the entire program. Read it over quickly, and then we'll walk through it.

Listing 1: tally.m: A vote tallying program

#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSString * results =
        @"apple,orange,apple,cherry,banana,apple,banana,"
        @"orange,apple,banana,cherry,banana,apple,orange";
    
    NSArray * votes = [results componentsSeparatedByString: @","];
    
    // Tally up the votes
    NSMutableDictionary * tallies = [NSMutableDictionary dictionary];
    int i;
    for (i = 0; i < [votes count]; i++)
    {
        NSString * vote = [votes objectAtIndex: i];
        NSNumber * currentTally = [tallies objectForKey: vote];
        int newTally;
        if (currentTally == nil)
        {
            // This is the first vote for this candidate
            newTally = 1;
        }
        else
        {
            newTally = [currentTally intValue] + 1;
        }
        
        [tallies setObject: [NSNumber numberWithInt: newTally]
                       forKey: vote];
    }
    
    // Print out the results
    int winningTally = 0;
    NSString * winner;
    NSArray * voteKeys = [tallies allKeys];
    for (i = 0; i < [voteKeys count]; i++)
    {
        NSString * vote = [voteKeys objectAtIndex: i];
        NSNumber * tally = [tallies objectForKey: vote];
        printf("%10s: %d\n", [vote UTF8String],
               [tally intValue]);
        if ([tally intValue] > winningTally)
        {
            winner = vote;
            winningTally = [tally intValue];
        }
    }
    printf("\nAnd the winner is: %s!\n",
           [winner UTF8String]);
    
    [pool release];
    return 0;
}

The general idea of this program is to take a comma-separated list of votes and tally them up. Once we have the tallies, we print the results and then the winner.

The first new syntax you'll see is how the results string is created. This shows how you can break up long string literals onto multiple lines. If you don't end the first line with a comma or semicolon, you can just start the second line like a normal string. The result is one big NSString.

The next new bit is how we split the results into individual votes. We use the componentsSeparatedByString: method to split the long, comma-separated string into an array of strings. It also removes the commas, so we have a nice, clean array of votes.

With each vote now in an array, we can proceed to calculating the tallies. We use a mutable dictionary to tally up the votes, where the key is the vote and the value is the current tally. The only complication is that we have to use the immutable NSNumber class to store the tally, since primitive types cannot be stored in a dictionary.

We loop through each vote in the votes array and look up its current tally in the tallies dictionary. Since initially the dictionary is empty, we may not get any tally back. If this is the case, then objectForKey: will return nil. We use this condition to set the next tally to 1. Otherwise, we add 1 to the current tally. We then package up the new tally as an NSNumber and store it back in the dictionary with the setObject:forKey: method. This method replaces any existing value, so our dictionary will only contain the current tally.

After we are done looping through all the votes, the tallies dictionary contains our voting results. Now we need to report the final results. The easiest way to do this is to loop through every key/value pair in the dictionary, and the easiest way to do that is to use the allKeys method of NSDictionary. It gives us every key in an array. We can then loop through each key, get its corresponding value, and print the tally. In order to make the results line up in columns, we use the %10s format specification for vote. This tells printf to pad out the string to 10 characters using spaces, if the string is less than 10 characters.

As we are looping through all the tallies to print them out, we also keep track of the maximum number of votes so we can find our winner. After reporting the final results, we print out our winner.

Okay, so what happens when we run this application? I get the following output:

    banana: 4
    cherry: 2
    orange: 3
     apple: 5
And the winner is: apple!

It was a close race, but ultimately apple (or is that Apple?) prevails. Well, as cool as this program is, it does have some limitations. First, the results string is stored directly in the program. This means if we need to update our results, we also have to recompile our program. Ideally, we would store our results in an external text file, but that would complicate this simple example a bit too much. If you want to try this yourself, though, look into the stringWithContentsOfFile:encoding:error: method of NSString. Here's a little hint to get you started. It reads a file named results.txt on your desktop into a string:

    NSString * file = @"~/Desktop/results.txt";
    file = [file stringByExpandingTildeInPath];
    NSString * results =
        [NSString stringWithContentsOfFile: file
                                  encoding: NSUTF8StringEncoding
                                     error: NULL];

Be careful, though. Even this code is not complete, as it ignores any errors that may occur. Production code should always handle errors. We will talk more about properly handling NSError later. If you want to try this out anyway, an added challenge would be to support votes on separate lines, instead of separated by commas.

Another limitation is that the results are not printed in any order. Ideally, we would print the results in ascending or descending order, by votes. The allKeys method does not guarantee what order the keys are in. In fact the order could be different every time we run it. Getting the keys back in a specific order requires some topics we haven't yet covered, such as selectors and comparators. If you want to learn more about this on your own, look into the keysSortedByValueUsingSelector: method of NSDictionary.

The final limitation is that we don't handle ties. We could use an array of winners, instead of a single winner, to fix this. This would be another fun modification to try on your own.

Conclusion

Well, we are making good progress! We've learned about the string, array, and dictionary classes that come as part of the Foundation framework. There's much more to Foundation, but with even this basic knowledge, we can do a lot. In fact, we can even begin to write GUI applications. Thus finally, next month, we will step away from the dark world of text-only command line applications, and start writing GUI applications.


Dave Dribin has been writing professional software for over eleven years. After five years programming embedded C in the telecom industry and a brief stint riding the Internet bubble, he decided to venture out on his own. Since 2001, he has been providing independent consulting services, and in 2006, he founded Bit Maki, Inc. Find out more at http://www.bitmaki.com/ and http://www.dribin.org/dave/.

 
AAPL
$118.93
Apple Inc.
-0.07
MSFT
$47.81
Microsoft Corpora
+0.06
GOOG
$541.83
Google Inc.
+1.46

MacTech Search:
Community Search:

Software Updates via MacUpdate

Adobe Photoshop Elements 13.0 - Consumer...
Adobe Photoshop Elements 12--the #1 selling consumer photo editing software--helps you edit pictures with powerful, easy-to-use options and share them via print, the web, Facebook, and more.Version... Read more
Skype 7.2.0.412 - Voice-over-internet ph...
Skype allows you to talk to friends, family and co-workers across the Internet without the inconvenience of long distance telephone charges. Using peer-to-peer data transmission technology, Skype... Read more
HoudahSpot 3.9.6 - Advanced file search...
HoudahSpot is a powerful file search tool built upon MacOS X Spotlight. Spotlight unleashed Create detailed queries to locate the exact file you need Narrow down searches. Zero in on files Save... Read more
RapidWeaver 6.0.3 - Create template-base...
RapidWeaver is a next-generation Web design application to help you easily create professional-looking Web sites in minutes. No knowledge of complex code is required, RapidWeaver will take care of... Read more
iPhoto Library Manager 4.1.10 - Manage m...
iPhoto Library Manager lets you organize your photos into multiple iPhoto libraries. Separate your high school and college photos from your latest summer vacation pictures. Or keep some photo... Read more
iExplorer 3.5.1.9 - View and transfer al...
iExplorer is an iPhone browser for Mac lets you view the files on your iOS device. By using a drag and drop interface, you can quickly copy files and folders between your Mac and your iPhone or... Read more
MacUpdate Desktop 6.0.3 - Discover and i...
MacUpdate Desktop 6 brings seamless 1-click installs and version updates to your Mac. With a free MacUpdate account and MacUpdate Desktop 6, Mac users can now install almost any Mac app on macupdate.... Read more
SteerMouse 4.2.2 - Powerful third-party...
SteerMouse is an advanced driver for USB and Bluetooth mice. It also supports Apple Mighty Mouse very well. SteerMouse can assign various functions to buttons that Apple's software does not allow,... Read more
iMazing 1.1 - Complete iOS device manage...
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
PopChar X 7.0 - Floating window shows av...
PopChar X helps you get the most out of your font collection. With its crystal-clear interface, PopChar X provides a frustration-free way to access any font's special characters. Expanded... Read more

Latest Forum Discussions

See All

Mystery Case Files: Dire Grove, Sacred G...
Mystery Case Files: Dire Grove, Sacred Grove HD Review By Jennifer Allen on November 28th, 2014 Our Rating: iPad Only App - Designed for the iPad A decent new installment for the popular Mystery Case Files series.   | Read more »
Castaway Paradise – Tips, Tricks, and St...
Ahoy there, castaways: Were you curious about our own thoughts regarding this pristine shipwreck? Check out our Castaway Paradise review! Castaway Paradise is out for iOS, finally giving mobile gamers the opportunity to enjoy the idyllic lifestyle... | Read more »
Castaway Paradise VIP Subs are on Sale f...
Castaway Paradise VIP Subs are on Sale for a Limited Time, and a Special Holiday Update is Coming Soon Posted by Rob Rich on November 28th, 2014 [ | Read more »
Primitive Review
Primitive Review By Jordan Minor on November 28th, 2014 Our Rating: :: FOLK ARTUniversal App - Designed for iPhone and iPad True to its name, Primitive is about as straightforward as runners get.   | Read more »
7 tips to get ahead of the competition i...
7 tips to get ahead of the competition in Dynasty of Dungeons Posted by Simon Reed on November 28th, 2014 [ permalink ] Playcrab has launched their action-packed new dungeon crawler, Dynasty of Dungeons, today. | Read more »
Master of Tea Kung Fu Review
Master of Tea Kung Fu Review By Jordan Minor on November 28th, 2014 Our Rating: :: ONE DROP RULESUniversal App - Designed for iPhone and iPad Master of Tea Kung Fu is a creative and complex caffeinated brawler.   | Read more »
Monster Strike Review
Monster Strike Review By Campbell Bird on November 28th, 2014 Our Rating: :: BILLIARD STRATEGYUniversal App - Designed for iPhone and iPad Collect monsters and battle by flinging them across the battlefield in this strangely... | Read more »
Proun+ Review
Proun+ Review By Jennifer Allen on November 28th, 2014 Our Rating: :: TWITCHY RACINGUniversal App - Designed for iPhone and iPad Twitchy racing aplenty in Proun+, an enjoyably tricky title.   | Read more »
Lucha Amigos (Games)
Lucha Amigos 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Forget Ninja Turtles, and meet Wrestlers Turtles! Crazier, Spicier and…Bouncier! Sling carapaces of 7 Luchadores to knock all... | Read more »
Record of Agarest War Zero (Games)
Record of Agarest War Zero 1.0 Device: iOS Universal Category: Games Price: $7.99, Version: 1.0 (iTunes) Description: HyperDevbox Holiday Turkey Black Friday Special Pricing! To celebrate the opening of the holiday season HyperDevbox... | Read more »

Price Scanner via MacPrices.net

Up To 75% Off Infovole Text Apps Over Black F...
Infovole’s entire range of apps, including the Textkraft family of word processors for iPads and iPhones, is being offered at 50-75% off over the Black Friday and Cyber Monday weekend. The five-day... Read more
Black Friday: Up to $60 off Mac minis, NY tax...
 B&H Photo has new 2014 Mac minis on sale for up to $60 off MSRP as part of their Black Friday sale. Shipping is free, and B&H charges NY sales tax only: - 1.4GHz Mac mini: $449.99 $50 off... Read more
Black Friday: 27-inch 5K iMac for $2299, save...
 B&H Photo continues to offer Black Friday sale prices on the 27″ 3.5GHz 5K iMac, in stock today and on sale for $2299 including free shipping plus NY sales tax only. Their price is $200 off MSRP... Read more
Karalux Announces 24K Gold-Plated iPhone 6
Karalux, a Vietnam-based jewellery firm, has launched a unique 24 karat gold-plated iPhone 6 version with gold-cast monolithic dragon on its back panel. The real 24 karat gold plated enclosure doesn’... Read more
Black Friday: 13-inch 2.6GHz Retina MacBook P...
 B&H Photo has lowered their price for the 13″ 2.6GHz/128GB Retina MacBook Pro to $1159 for Black Friday. That’s $140 off MSRP, and it’s the lowest price for this model (except for Apple’s $1099... Read more
View all the Black Friday sales on our Mac Pr...
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. View Black Friday sale prices at a... Read more
Black Friday: 11-inch MacBook Air for $779, s...
 Best Buy has lowered their price for the 2014 11″ 1.4GHz/128GB MacBook Air to $779.99 for Black Friday. That’s $120 off MSRP. Choose free shipping or free local store pickup (if available). Sale... Read more
Apple Store Black Friday sale for 2014: $100...
BLACK FRIDAY The Apple Store has posted their Black Friday deals for 2014. Receive a $100 PRODUCT(RED) branded iTunes gift card with the purchase of select Macs, $50 with iPads, and $25 with iPods,... Read more
Black Friday: 15% off iTunes Gift Cards
Staples is offering 15% off $50 and $100 iTunes Gift Cards on their online store as part of their Black Friday sale. Click here for more information. Shipping is free. Best Buy is offering $100... Read more
BEVL Releases Dock Tailored for iPhone 6 and...
Seattle based BEVL has released their first product: an iPhone dock that is divergent in build quality, rock-solid function and visual simplicity to complement the iPhone. BEVL is now accepting... Read more

Jobs Board

*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
Senior Event Manager, *Apple* Retail Market...
…This senior level position is responsible for leading and imagining the Apple Retail Team's global event strategy. Delivering an overarching brand story; in-store, Read more
*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
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
*Apple* Solutions Consultant (ASC) - Apple (...
**Job Summary** The ASC is an Apple employee who serves as an Apple brand ambassador and influencer in a Reseller's store. The ASC's role is to grow Apple Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.