Apple responds to EPEAT move

Apple responded to the controversy surrounding its request to remove its products from the EPEAT green electronics registry. In a statement provided to The Loop, Apple representative Kristin Huguet confirmed the Cupertino company’s commitment to the highest environmental standards and pointed out that “Apple products are superior in other important environmental areas not measured by EPEAT.” You can read the full statement and Jim Dalrymple’s analysis on The Loop’s website.

Apple responds to EPEAT move originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 11 Jul 2012 10:05:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Intuit releases Mint QuickView in the Mac App Store

Personal finance site Mint.com (owned by Intuit) has released its first OS X app in the Mac App Store. Called Mint QuickView, the app allows Mint.com users to quickly take a peek at their finances. The app isn’t a full-fledged personal finance app like Quicken or iBank, rather it’s a small window (read: mini browserish) to your Mint account. You access it from OS X’s menu bar to see the balances on all your Mint accounts, recent transactions, and net income. The app also displays badged notifications when you have new transactions or one of your accounts needs tending to.

Owners of the new MacBook Pro will also be pleased to find the app is Retina display ready. Mint QuickView is a free download and requires Mac OS X 10.6 or later.

Intuit releases Mint QuickView in the Mac App Store originally appeared on TUAW – The Unofficial Apple Weblog on Wed, 11 Jul 2012 09:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

News: New iOS Facebook SDK Released With New Native UI Views, Blocks, And More

I’ve mentioned some excellent helpers libraries in the past built to enhance usage of the Facebook iOS SDK adding features such as blocks and even remixes of the entire SDK.

Today issued a new beta release of the Facebook SDK with easier user session management, new native views for common functions (with examples included), modern Objective-C language features such as blocks based callbacks, improved Facebook API calls and more.

The new SDK is fully backwards compatible with the previous release.

You can install the new SDK through the package installer here and read more about the release of the SDK on the Facebook developer blog, and there’s also a tutorial on getting started with the new SDK.

Definitely  significant upgrade.

DeliciousTwitterFacebookRedditLinkedInEmail


Example Source Code: Using Face Detection To Create The Illusion Of Real 3D On iOS Devices

Early last year an app known as i3D hit the app stores demonstrating “monocular 3D” that uses face detection to provide the illusion of real 3D.

With iOS 5 Apple added Core Image and face detection right into the iOS SDK and Edwin Vermeer has created an example project demonstrating this principle by using a modified version of Apple’s example project SquareCam.

What the example does is estimate the distance and angle of your face from the device, and modify an image and shadow based on those calculations.

Here’s a video demonstrating the example in action:

You can download the example from Github here, and read more about it on Edwin’s blog.

You can find the i3D app here, and Apple’s SquareCam example here.

A pretty cool effect.  Thanks to Edwin for the submission.

DeliciousTwitterFacebookRedditLinkedInEmail


Navigation Buttons in iPhone

The UINavigationController class allows an application to maintain a stack of UIViewControllers, each having their own view. Each UIViewController has a title property (an NSString) which represents the title to be displayed in the navigation bar of that view controller. But the navigation bar itself maintains an array of bar buttons that we can manipulate in any way we want. Let’s see how it works.

Start Xcode and choose “Create a new Xcode project.” Choose the Empty Application template, and click Next. Name the project “BarButtons” and select the options shown here:

Click Next, choose a location to save the project, and click Create.

When the project is done loading, select the AppDelegate.m file, then right click it and choose “New File” from the popup menu. (The reason we select the AppDelegate file first is that Xcode will add the new file immediately below whatever file we’ve selected in the navigator.)

We need a view controller for our application, so let’s add one now. In the template window, choose “Objective-C class” and click next. Name the class “View1Controller” and make sure that it is a subclass of UIViewController. Choose the options shown below, then click Next.

Save the new class in the default location by clicking Create. The Navigation panel should now look something like this:

Xcode offers many ways to build applications. Applications using UINavigationControllers can be easily built by using storyboards, but to get a good understanding of how navigation controllers work, we’ve elected to start with an empty template and not to use storyboards.

Perhaps the best way to think of a UINavigationController is as a stack of UIViewController objects. Each view controller has a view, and is a member of the navigation controller’s stack. At any given time, only the view belonging to the view controller on the top of the stack is visible.

Open up the AppDelegate.h file, and make the changes shown here:

#import <UIKit/UIKit.h>
#import "View1Controller.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) UINavigationController *navController;
@property (strong, nonatomic) View1Controller *rootViewController;

@end

Note that we’ve added two properties, one for the UINavigationController (called navController) and a second for our View1Controller (calling it rootViewController). Importing View1Controller.h allows us to add this second property.

In the AppDelegate.m file, make these changes:

#import "AppDelegate.h"

@implementation AppDelegate

@synthesize window = _window;
@synthesize navController = _navController;
@synthesize rootViewController = _rootViewController;

– (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
   
    // initialize the root view controller:
    self.rootViewController = [[View1Controller alloc] initWithNibName:nil bundle:nil];
    // set the title:
    self.rootViewController.title = @"Main View";
    // initialize the nav controller with the root vc as its root view controller:
    self.navController = [[UINavigationController alloc] initWithRootViewController:self.rootViewController];
    // make the nav controller a subview of the window:
   
    [self.window addSubview:self.navController.view];
   
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}
…

As always, we first synthesize our properties. All other changes in this file will be made in the application: didFinishLaunchingWithOptions: method (leave the rest of the methods in place, we won’t alter those).

The first line in the method allocates memory for the main window, and initializes its area to the bounds of the main screen. Next, we set up our rootViewController object. Since this view controller was created with a nib in the main bundle, we initialize it with a nib name of nil (meaning “use the nib file it already has”) and a bundle of nil (meaning “use this application’s bundle”). We set the title property of this view controller to @”Main View” – the title will be displayed in the navigation bar when this view controller is displayed.

Next, we initialize the navigation controller, setting its rootViewController to the view controller we just instantiated. Every UINavigationController must have at least one view controller on its stack; the first view controller on the navigation controller’s stack is called its “Root View Controller.”

After setting up the navigation controller, we add its view as a subview of the main window. But what is the navigation controller’s view? It is the view belonging to its root view controller, which is the (currently empty) View1Controller.xib file.

Open the View1Controller.xib file, and change the background color of the view to some attractive color:

Since this view will be displayed with a title bar, we’re just going to leave it blank.

If we run the application now, this is what we should see:

The navigation controller gives us the title bar, and the view controller’s title is displayed inside it.

Now we’re going to add a bar button item to the navigation bar. Open up the View1Controller, and make the changes shown to the initWithNibName: bundle: method:

– (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
       
        UIBarButtonItem *addButton = [[UIBarButtonItem alloc]           initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self                                        action:@selector(addTouched)];
        self.navigationItem.rightBarButtonItems = [NSArray arrayWithObjects:addButton, nil];
 
    }
    return self;
}

We create a new instance of UIBarButtonItem called addButton by allocating, then initializing it with the UIBarButtonSystemItemAdd button. There are many different system buttons we can add; they are listed in the UIBarButtonItem documentation. The target for the button’s Touch Up Inside event is “self” (meaning this view controller), and the action is a selector called “addTouched” which we will define in a moment.

After creating the bar button item, we can display it by adding it to the navigationItem’s rightBarButtonItems array. (We could also add it to the leftBarButtonItems array, but since that array already contains the “back” button (if any), we should stick with the rightBarButtonItems array for new buttons.

Each view controller on the navigation controller’s stack maintains its own arrays of bar button items, by the way. When we push a new view controller on the stack, (as we’ll see in a moment), we’ll need to add bar button items to that view controller’s navigation item if we need them.

Add the addTouched method to the View1Controller.m file now:

– (void)addTouched
{
    UIViewController *newController = [[UIViewController alloc] initWithNibName:nil bundle:nil];
    newController.title = @"New View";
    UIView *newView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    newView.backgroundColor = [UIColor yellowColor];
    newController.view = newView;
    [self.navigationController pushViewController:newController animated:YES];
    newView = nil;
    newController = nil;
}

Here, we get a new UIViewController instance called newController. Notice that we initialize this controller with a nib name of nil; this is because this particular controller is not associated with any nib file: we’re going to add a UIView object directly to the controller as its view.

We set the title of our controller to @”New View”, then we get a new UIView instance, the size of the entire screen. This view is then made the newController’s view. Finally, we push this view controller onto the navigation controller’s stack. The newController object now has a strong reference to the newView object, and the navigation controller has a strong reference to the newController object. We can now set both of these new objects to nil, because strong references are held elsewhere.

Run the app, and see what happens when we touch the add button in the nav bar:

When the “Main View” button is pushed in the New View controller’s title bar, the newController is popped off the stack; its strong reference is gone, so ARC cleans up the objects (both the controller and the view)!

Try adding bar buttons of different types to see what they look like. Also try different selector implementations. You can add several bar button items to the nav bar array. Remember though that on iPhone we have only a very limited space in which to work. On iPad, we have more space, but adding too many buttons to the nav bar itself can be confusing. Navigation controllers can also display a button bar at the bottom of their area as well, but that’s the subject of another blog…

Using Introspection in iPhone

Objective – C allows dynamic binding: a feature that makes it possible to postpone decisions about what classes we are dealing until runtime. In order to make this kind of decision however, we need to be able to determine exactly what class or classes we’re dealing with. It would not do (for example) to send a method to change the text of an object that didn’t implement that method. In this blog, we’re going to explore Introspection as a way to find information about classes at runtime.

Open Xcode, choose “Create a new Xcode project,” select the Single View Application template, and click Next. Name the project “Introspection,” and choose options as shown here:

Click Next, choose a location to save the project, and click Create.

When the app template has been created, open the ViewController.zib file, and drag controls to the view as shown below:

Note that the large white square is a UIView object containing eight labels. All other controls are on the main view.

Next, open the ViewController.h file, and make changes as shown below:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

– (IBAction)test1Pressed:(UIButton *)sender;
– (IBAction)test2Pressed:(UIButton *)sender;
– (IBAction)test3Pressed:(UIButton *)sender;
– (IBAction)test4Pressed:(UIButton *)sender;

@end

We’re only declaring action methods for the four UIButton objects. We don’t need IBOutlets in this app; we’re going to find controls in the view by inspecting the properties of the objects inside the main view using introspection. Wire up the four actions above to the UIButtons in the Interface Builder.

After the buttons are wired up to their corresponding methods, open the ViewController.m file and add the method definitions shown here:

– (IBAction)test1Pressed:(UIButton *)sender
{
    for (UIView *aView in self.view.subviews) {
        if ([aView isMemberOfClass:[UILabel class]]) {
            aView.backgroundColor = [UIColor redColor];
        }
    }
}

– (IBAction)test2Pressed:(UIButton *)sender
{
    for (UIView *aView in self.view.subviews) {
        if ([aView isKindOfClass:[UIView class]]) {
            aView.backgroundColor = [UIColor blueColor];
        }
    }
}

– (IBAction)test3Pressed:(UIButton *)sender
{
    for (id aView in self.view.subviews) {
        if ([aView canPerformAction:@selector(setText:) withSender:sender]) {
            [aView setText:@"Hello!"];
        }
    }
}

– (IBAction)test4Pressed:(UIButton *)sender
{
    for (UIView *aView in self.view.subviews) {
        if ([aView isMemberOfClass:[UIView class]]) {
            for (UILabel *aLabel in aView.subviews) {
                aLabel.backgroundColor = [UIColor greenColor];
            }
        }
    }
}

Add these methods immediately after the @implementation line in the .m file. Run the application now, and observe the results of pressing each button.

The first test looks at all subviews of the main view. It then uses isMemberOfClass on each one to determine if each view is a UILabel. The isMemberOfClass method returns YES if an object is an instance of one specific class. So if this method finds a UILabel that is a subview of the main view, it will set its background color to red:

The label objects inside the white square UIView do not get their background color set to red. This is because these labels are subviews of a subview, not direct subviews of the main view.

The second test looks for all subviews of the main view that are descended from UIView. This is accomplished by calling isKindOfClass. Since all controls are descendents of UIView, this method will change the background color of all of the subviews to blue:

Again, the background color of the labels internal to the white square view is unchanged, since the default background color of a UILabel is transparent.

Test 3 searches all the subviews of the main view for objects that have a setText method. It accomplishes this by using the canPerformAction method. Since the only subview of the main view that has a setText: method is the UILabel at the top, the method changes the text to “Hello!”:

Test 4 shows one way to get to the label objects in the white square view. First, we must find a subview of the main view that is a member of the UIView class. Then, we look for subviews of that view that are UILabels, and set their background color to green:

Introspection is useful when we have a large number of similar controls and we want to find a particular control by looking at some attribute (for example, a tag). It is also useful when we’re using inheritance. We might want all subclasses of some class to perform a method, but only if that method is defined. Since we might not know what objects will be performing the method at compile time, we can see that introspection is an extremely powerful tool.

Cool 20 Responsive JQuery Sliders plugin for your site

This article contains 20 new and useful jQuery plugins that will reduce the time and effort required to increase the number of visitors to your web site.
Quick and powerful jQuery can help designers and developers to create beautiful interactive sites that will be attractive and compatible with the majority of browsers.

read more

Daily iPhone App: AAA Auto Buying Tools will help you find your next car

If you’re in the market for a new car, you know how hard it is to find a good a deal. One tool that’ll help you compare cars and get a price estimate is the Auto Buying app from AAA. The app lets you add your zip code and retrieve the prices for different model cars in your location.

Besides prices, the app also pulls down detailed information about the car including its specifications, safety ratings, and AAA auto reviews. You can save your searches and even compare two vehicles side-by-side if you are interested in two different models. If you are AAA member, you can then use the app to contact a dealer or AAA to get a reduced price on the vehicle that you want to buy.

The AAA Auto Buying Tool is available for free from the iOS App Store.

Daily iPhone App: AAA Auto Buying Tools will help you find your next car originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 23:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Australian Apple Stores to get EasyPay checkout

Australian customers might soon be able to shop at their local Apple Store with their iPhone, according to an ifoAppleStore report. Starting Thursday, Apple will turn on its Easy Pay service in stores throughout Australia.

Easy Pay allows customers to stroll into an Apple Store, pick out an accessory and pay for it using the Apple Store app. It’s easy, takes a few minutes and does not require the intervention of a sales associate. Customers can also use the system to schedule a Genius Bar appointment via their phone. The system is available in the US, UK, the Netherlands and now Australia.

Australian Apple Stores to get EasyPay checkout originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 22:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Woz wants a Surface

Apple co-founder Steve Wozniak spoke at a recent conference in Chile, and perhaps the most interesting thing he said was that he is looking forward to Microsoft’s new Surface tablet. Yes, there’s something about Microsoft’s consumer-focused attempt at making a tablet computer (maybe the case with a keyboard or the built-in stand) that has caught Woz’s eye. And he says that not only do Microsoft’s latest offerings “have such a strikingly good visual appearance,” but Woz also joked that maybe “Steve Jobs came back reincarnated at Microsoft.”

We don’t know about that one, but obviously Woz was joking around. And the fact that Woz wants a device that seems aimed at directly competing with Apple isn’t new at all — even when the iPhone was brand new, Woz was happy to carry around at least three iPhones and a few smartphones besides. What can we say — the guy likes the latest and greatest tech, no matter who’s making it. As he says, “I prefer to judge things I really know and not just what I’ve read about.”

Woz wants a Surface originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 20:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Google+ app updated with iPad support

Not to be outdone by Twitter’s big update today, Google has also updated its Google+ app, with support for the recent Google+ Events feature, full support for usage on the iPad, and the ability to start and join hangouts directly from the iOS interface. It’s pretty snazzy — if you’re a Google+ fanatic, this is probably one of the better updates for the app you’ll see.

The Google+ app is a free download, and of course joining the Google+ network is free with any Google account.

Google+ app updated with iPad support originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 19:45:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

ego USB Case for iPhone 4/4S: A handy hybrid of protection and storage

Just when I think I’ve seen everything in terms of iPhone cases, along comes a manufacturer that does something completely different. ego&company has announced a novel iPhone 4/4S case called the ego USB Case that includes a removable 4 GB (US$34.95), 8 GB ($39.95), or 16 GB ($49.95) USB flash drive that slides into the back of the case.

I don’t know about you, but I’ve lost a number of flash drives over the years simply because they’re small and they tend to fall out of bags and pockets. Something like the ego USB Case would be perfect, since I’m never without my iPhone. The USB flash drive slides into a slot on the back side of the case and snaps into place, so it’s less likely to fall out and be lost.

You can either buy the standard gray case with pink or blue (4 GB), yellow or light green (8 GB), or red or black (16 GB) flash drives, or order the case and drive separately to mix and match colors. The case itself is available in pink, sky blue, yellow, light green, red, and black for $18.75, while the separate drives are $13.95 for the 4 GB size, $18.95 for the 8 GB size, and $28.95 for the 16 GB capacity.

The ego USB Case is available for purchase immediately.

ego USB Case for iPhone 4/4S: A handy hybrid of protection and storage originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 19:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Update for July 10, 2012

It’s the TUAW Daily Update, your source for Apple news in a convenient audio format. You’ll get all the top Apple stories of the day in three to five minutes for a quick review of what’s happening in the Apple world.

You can listen to today’s Apple stories by clicking the inline player (requires Flash) or the non-Flash link below. To subscribe to the podcast for daily listening through iTunes, click here.

No Flash? Click here to listen.

Subscribe via RSS

Daily Update for July 10, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 18:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Rovio’s Amazing Alex arrives this week

Rovio has obviously had a ton of success (the most success on the App Store, arguably) with Angry Birds, but the company hasn’t done much outside of that brand since it launched. That’s all going to change later on this week, when Amazing Alex arrives as the first non-Angry Birds followup from the Finnish game developer.

We’ll get to find out just how much of Amazing Alex is actually original. The game was released on the App Store last year as Casey’s Contraptions, a game which Rovio purchased whole hog from its creators. Casey’s Contraptions offered up a lot of Rube Goldberg-esque fun, as well as a deep and powerful level creation and sharing system, so we’ll see just how much of that Rovio kept, and what the company developed for themselves.

Amazing Alex should be out this Thursday on the App Store, and you can see a launch trailer below.

Rovio’s Amazing Alex arrives this week originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 18:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Twitter for iPhone 4.3 available for your tweeting pleasure

There’s a new update to the official Twitter app for iPhone. Twitter for iPhone 4.3 (free) arrived today with a number of new features and bug fixes that should make life with the app a lot easier.

According to the update notes, Twitter for iPhone 4.3 includes:

  • Expanded Tweets — when you view Tweet details containing links to partner websites, you can now see content previews, view images, play videos, and more (rolling out gradually)
  • Enhanced experience around selected events with the bets Tweets and photos from those involved
  • Push notifications for Tweets — choose to receive notifications from people you follow any time they tweet or retweet
  • Ambient notifications — enables you to see brief non-interruptive notifications in the status bar while you’re using the app
  • Improvements to search autocomplete for users
  • Discover — now indicates when new stories are available for you to view
  • Tappable avatars take you directly to user profiles
  • Performance improvements
  • Support for password entry in app when experiencing authentication issues
  • Support for the Hungarian language
  • Icon (image at right) features the new Twitter bird!

Of course, this is a universal app so if you’re using the official Twitter app on your iPhone and iPad, both will be updated.

Twitter for iPhone 4.3 available for your tweeting pleasure originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 10 Jul 2012 17:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments