Friday Favorite: Bartender

There comes a time in a power user’s life when the number of his menu bar applications exceeds the amount of real estate in the menu bar, a condition made worse by primary applications with a lot of menus. The cure for this? A handy little app, which is still undergoing testing, called Bartender.

Bartender will roll up menu bar items into one little drop-down menu bar item. That’s pretty much it! You can have Bartender hide something entirely, or just pop it under the Bartender menu bar icon.

Keep in mind this is still in beta, so many of my TUAW colleagues weren’t able to put system icons into Bartender, but I was. Your mileage may vary, but while the app is in beta it is basically free. You can also choose to buy it now for $7.50, which is half what it will cost when it is out of beta.

If, like me, your menu bar has exceeded the width of what your screen can handle, try Bartender. It’s just what you were looking for.

Friday Favorite: Bartender originally appeared on TUAW – The Unofficial Apple Weblog on Fri, 31 Aug 2012 10:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Samsung wins victory over Apple in Japan court

On Friday, a Japanese court gave Samsung a small boost when it ruled that the Korean company did not infringe on an Apple patent that covers media synchronization between a device and servers. According to a New York Times report, this is one of several patent suits Apple has filed against Samsung in Japan. Still pending is a more important case that claims Samsung’s devices infringe on Apple’s patented “bounce back” effect. Apple has asked for an injunction in that case, and Samsung has countersued claiming Apple violates its patents.

Samsung, however, was pleased with the small victory it was awarded in Japan. In a statement provided to the media, the company reasserted its position that it does not copy Apple. “Samsung has strongly asserted that its technology is altogether different and does not infringe on Apple patents. The ruling recognizes the legitimacy of Samsung’s assertions and is highly valid,” it said.

Samsung may have won small legal victories in Japan and Korea, but the company was handed a major setback in the US. In a sweeping win for Apple, Samsung was found guilty of infringement on several Apple patents and trade dress claims. The Korean company faces an injunction against eight of its smartphones and must pay Apple a minimum of US$1.05 billion in damages.

Samsung wins victory over Apple in Japan court originally appeared on TUAW – The Unofficial Apple Weblog on Fri, 31 Aug 2012 09:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Getting the duration of a touch on iPhone

Since iOS version 5, gesture recognizers have been added to the list of controls in the Interface Builder library. But sometimes we want more information about a touch than these handlers can easily provide. Today, I’ll show you a simple way to get the exact duration of a touch on the screen. So let’s get started!

Start Xcode, select “Create a new Xcode project,” and select the Single View Application template. Click Next, name the project TouchDuration, and select options as shown here:

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

Open ViewController.xib, and drag two UILabels from the library to the view. Set the text of the first label to “Touch the screen” and delete all text from the second label. The view should look something like this:

Open ViewController.h and make the following changes:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@property (nonatomic, strong) IBOutlet UILabel *lbDisplay;
@property (nonatomic, strong) IBOutlet UILabel *lbTime;
@property (nonatomic, strong) NSDate *startTime;

@end

We’ve added two outlet properties for the labels, and an NSDate property named startTime. Return to ViewController.xib, and wire up the two outlets to their corresponding labels:

Open ViewController.m and alter the code as shown:

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

@synthesize lbDisplay, lbTime;
@synthesize startTime;

– (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    if ([touches count] == 1) {
        self.startTime = [NSDate date];
    }
}

– (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    if ([touches count] == 1) {
        NSDate *now = [NSDate date];
        NSTimeInterval deltaT = [now timeIntervalSinceDate:self.startTime];
        if (deltaT > 0.5) {
            self.lbDisplay.text = @"Long Touch (> .5 seconds)";
        } else {
            self.lbDisplay.text = @"Short Touch (<= .5 seconds)";
        }
        self.lbTime.text = [NSString stringWithFormat:@"Exact time: %f seconds", deltaT];
    }
}

– (void)viewDidLoad
{
    [super viewDidLoad];
        // Do any additional setup after loading the view, typically from a nib.
}

– (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    self.lbDisplay = nil;
    self.lbTime = nil;
}

– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

@end

After synthesizing the properties, we’ve added two methods: touchesBegan: withEvent: and touchesEnded: withEvent:. In touchesBegan, after verifying that only one finger is involved in the touch, we simply obtain the current time in self.startTime. In touchesEnded, we again get the current time, then calculate the time difference between “now” and the startTime. The timeIntervalSinceDate: method of an NSDate object returns a float: this is the difference between two NSDates expressed in seconds. (NSTimeInterval is simply an alias for float.)

In viewDidUnload, we release both of the label objects, since they were retained by the viewController (they are “strong” properties).

Now run the application. As expected, not only does it inform the user whether the touch was “long” or “short,” but also exactly how long the touch lasted.

In most cases, we can use the new gesture recognizers provided for us in Interface Builder. But if we need to get the exact duration of a touch, the procedure just discussed provides an easy way.

Chitika research: Mountain Lion on 1 of every 10 Macs

In news that really should surprise no one, Chitika Insights used web impressions to determine that a little more than a month after its release, OS X Mountain Lion has been installed on one out of every 10 Macs. Most of those installations took place within the first week of release, with an additional spike in downloads within the past week. With the low upgrade price and the ease of installation through the Mac App Store, the fact that a lot of Macs already are running it isn’t a shock.

Previous studies by Chitika showed that the adoption of OS X leaped a bit in the month after Lion was released in 2011, and that Mountain Lion downloads accounted for 3% of web traffic in the week after it was released.

[via GigaOM]

Chitika research: Mountain Lion on 1 of every 10 Macs originally appeared on TUAW – The Unofficial Apple Weblog on Fri, 31 Aug 2012 08:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Grandma + iPad = artistic expression

Reddit user Oxide42 posted the above photo of his grandmother with the following caption: Bought my Grandma an iPad. She’s 84 and never had a tablet, and wanted it for “art.” I bought ArtRage for her and left her alone with her new toy for 30 minutes. This is what I came back to.

Nice work, Grandma! ArtRage for iPad is currently on sale for $2.99, but talent is priceless (and apparently ageless, too).

Grandma + iPad = artistic expression originally appeared on TUAW – The Unofficial Apple Weblog on Fri, 31 Aug 2012 00:05:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

$69 million ebook settlement reached with three publishers, Apple remains in suit

Three of the publishers involved in the antitrust suit levied by the U.S. Department of Justice against Apple and others have officially reached a settlement, with $69 million going to consumers as a result, Baltimore’s ABC 2 reported on Thursday.

Hachette, HarperCollins and Simon & Schuster will issue the payouts and agreed to terminate agency pricing contracts with publishers such as Amazon and Barnes & Noble. This pricing model, which mirrors Apple’s 70-30 revenue split with software developers on the App Store, includes a “most favored nation” clause that blocked Amazon from discounting bestselling ebooks below cost as it moved to secure its overwhelming share of the ebook market.

ABC 2 said Apple, along with Amazon, Google, Sony, Barnes & Noble and Kobo, agreed to contact eligible customers via email and that the amount issued will either be a check or credit toward future purchases. The amount of restitution is varied by state and affects books sold under the agency model by all five publishers (the above publishers plus Penguin and Macmillan, called the “Agency Five”) between April 1, 2010, and May 21, 2012.

A couple of weeks ago, Apple blasted the proposed settlement, which involves renegotiating contracts with the publishers, saying it was unfair and unlawful. The trial against those who remain in the antitrust suit — Penguin, Macmillan and Apple — is scheduled to begin in June 2013.

The settlement will go into effect 30 days after being approved by a federal judge.

[Via The Verge]

$69 million ebook settlement reached with three publishers, Apple remains in suit originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 23:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Adobe promises Retina support for Photoshop, other CS6 apps

The advent of Retina across Apple’s iOS and Mac product lines has meant beautiful HiDPI displays for well-heeled owners — and bountiful headaches for application developers who have to rework, revise and rebuild their products to take advantage of all those lovely little pixels. Key productivity and graphic arts tools have yet to make the Retina leap, but today Adobe announced that its customers won’t have to wait much longer for support.

In posts on both the Photoshop.com and Creative Layer blogs, Adobe is promising an autumn 2012 rollout for Retina support in Photoshop CS6, and eventual Retina goodness “over the coming months” in Dreamweaver, Edge Animate, Illustrator, Lightroom, Prelude, Premiere Pro and SpeedGrade. The iPad image editor Photoshop Touch will also be getting tapped with the Retina wand.

While this enhancement plan doesn’t currently cover a few essential CS apps (After Effects, Fireworks, Flash and InDesign are notably not listed), Adobe says it’s “evaluating the roadmap for when other products may support HiDPI displays” and will update customers when those plans are firmed up. Participants in the company’s $49/month Creative Cloud software rental setup will be getting updates and new features on an accelerated schedule, including some Illustrator bonuses released this week that are exclusive to the service.

[Photo by Bodey Marcoccia, flickr cc]

Adobe promises Retina support for Photoshop, other CS6 apps originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 17:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

IFTTT Recipes: Cool me off!

IFTTT Recipes is a new recurring column featuring recipes developed using IFTTT.com and their favorite IFTTT channels. Come see what TUAW bloggers cook up in the IFTTT labs!

We don’t have air conditioning in our house, but the low humidity in Colorado usually means that a fan is sufficient to stay comfortable. I thought it would be fun to have IFTTT turn on a fan near my desk whenever the temperature outside goes above 90°F.

The IFTTT channels I used were Weather and WeMo Switch. One of the weather triggers is “Current Temperature Rises Above,” so I set it up to fire when the current temperature at my location rises above 90°F. For the action, I set up the WeMo switch (see my review of WeMo here) channel to turn on when it received the trigger from Weather.

The fan is a simple little desk fan that sits near my desk, so I plugged it into the WeMo. Sure enough, on those days when it gets hot outside, the fan automatically turns on. To ensure that the fan doesn’t run longer than necessary, I’ve also created another recipe that turns the fan off when the outside temperature gets lower than 85°F.

It’s working really well! However, since the Weather channel uses outside temperature at a weather station near my home, the temperature reading isn’t always accurate. I sent off an email to the makers of the Netatmo personal weather station to see if they’d consider creating a Netatmo channel on IFTTT — that would be perfect, since I could use the Netatmo inside temperature reading to trigger the fan. It’s an Internet-based thermostat!

IFTTT Recipes: Cool me off! originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 17:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Delivery Status widget lets you track packages from your Dashboard

Delivery Status widget lets you track packages from your Dashboard

Some of us get a lot of packages. Whether you do a lot of shopping via Amazon, have a thing for Zappos shoes, or are just waiting for the goodies you won in a TUAW giveaway to show up, it’s often nice to know where those packages are and when they’re going to get to you. A nicely done Dashboard widget called Delivery Status (donationware) is the perfect way to see where your packages are, and there’s a new version (5.8) of the widget available.

What’s new? OS X Mountain Lion’s Notification Center is supported, as is the Retina display on the new MacBook Pro. There had been an issue on Mountain Lion Macs with FedEx notifications that weren’t refreshing properly, but that has been fixed. There are also, according to the developers at Junecloud, “Lots of little adjustments and polish.”

Thanks to a host of volunteers, the widget is available not only in English, but German, Japanese, French, Italian, Dutch, Norwegian, Danish, and Swedish. There’s also a syncing service that works with the company’s Delivery Status touch app ($4.99) for iOS. If you already use Delivery Status or you’ve been looking for a solution to keep track of all of those shipments, be sure to download the latest version today.

Delivery Status widget lets you track packages from your Dashboard originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 16:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Daily Update for August 30, 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 August 30, 2012 originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 15:30:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Google and Apple may be talking about patents

Reuters is reporting that Apple CEO Tim Cook and his counterpart at Google, Larry Page, have been meeting to discuss the ongoing patent issues between the two companies.

The two CEOs apparently had a phone conversation as late as last week, and are expected to talk again soon. A source told Reuters that a meeting was scheduled for August 31, but has been delayed for unknown reasons. It’s also unknown if Cook and Page are working on a possible settlement of the many patent disputes between the two companies or are focused on just a subset of issues.

Reuters noted that the two chief executives might be considering a “truce” over disputes concerning some basic features of Google’s Android mobile OS. That would be a decidedly more peaceful course of action than Steve Jobs’ plan to “go thermonuclear” on Google over Android.

Apple is pulling away from other Google products. In the upcoming release of iOS 6, for example, Apple has chosen to use its own mapping solution instead of Google Maps and Google’s YouTube is nowhere to be found in the pre-installed software.

Google and Apple may be talking about patents originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 15:15:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Griffin announces Survivor Custom: Military-grade iPhone protection in a broad spectrum of colors

Accessory manufacturer Griffin announced today that they’ve joined the likes of OtterBox and LifeProof in the military-grade iPhone 4/4S case market. The new Survivor Custom (US$49.99) is a three-part rugged case, which purchasers can customize by mixing or matching the colors of the silicone wrap, polycarbonate inner shell, and the belt clip.

The Survivor Custom is designed to meet or exceed US Department of Defense standards for protection in extreme conditions. The silicone wrap comes in black, blaze orange, pool blue, hunter camo, pink, red, and olive; the polycarbonate inner shell is available in black, white, blaze orange, pool blue, pink, red, and olive; the belt clip (detachable) comes in black, white, pool blue, pink, red and olive.

TUAW will be doing a full review of the Survivor Custom in the near future; until then, head out to the website and have fun designing your perfect case. After all, you have 294 color combos to choose from…

Griffin announces Survivor Custom: Military-grade iPhone protection in a broad spectrum of colors originally appeared on TUAW – The Unofficial Apple Weblog on Thu, 30 Aug 2012 15:00:00 EST. Please see our terms for use of feeds.

Source | Permalink | Email this | Comments

Open Source Core Data And Network Debugging Tool For iOS Apps

Some time ago I mentioned the Mogenerator tool for core data class generation, I’ve also mentioned the premium Core Data Editor tool that provides a number of great features for developers using Core Data.

Today I came across another excellent tool for working with Core Data from the engineering team at Square known as PonyDebugger.  PonyDebugger is a debugging tool for native apps that allows you to perform debugging of native apps within a web browser.

You can monitor an app’s network usage in-depth with essential networking data presented in a human readable manner.  probably the coolest feature of this tool is that you can easily browse through an app’s Core Data stack with all entities, properties and relationships presented in a straightforward manner.

Here’s an image of PonyDebugger in action on a Core Data store from the Square blog:

You can find PonyDebugger on Github here with installation and usage instructions.

You can read more about PonyDebugger on the Square blog here.

An excellent time-saving tool.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Open Source Core Data And Network Debugging Tool For iOS Apps

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


Getting the duration of a touch on iPhone

Since iOS version 5, gesture recognizers have been added to the list of controls in the Interface Builder library. But sometimes we want more information about a touch than these handlers can easily provide. Today, I’ll show you a simple way to get the exact duration of a touch on the screen. So let’s get started!

Start Xcode, select “Create a new Xcode project,” and select the Single View Application template. Click Next, name the project TouchDuration, and select options as shown here:

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

Open ViewController.xib, and drag two UILabels from the library to the view. Set the text of the first label to “Touch the screen” and delete all text from the second label. The view should look something like this:

Open ViewController.h and make the following changes:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

@property (nonatomic, strong) IBOutlet UILabel *lbDisplay;
@property (nonatomic, strong) IBOutlet UILabel *lbTime;
@property (nonatomic, strong) NSDate *startTime;

@end

We’ve added two outlet properties for the labels, and an NSDate property named startTime. Return to ViewController.xib, and wire up the two outlets to their corresponding labels:

Open ViewController.m and alter the code as shown:

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

@synthesize lbDisplay, lbTime;
@synthesize startTime;

– (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    if ([touches count] == 1) {
        self.startTime = [NSDate date];
    }
}

– (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    if ([touches count] == 1) {
        NSDate *now = [NSDate date];
        NSTimeInterval deltaT = [now timeIntervalSinceDate:self.startTime];
        if (deltaT > 0.5) {
            self.lbDisplay.text = @"Long Touch (> .5 seconds)";
        } else {
            self.lbDisplay.text = @"Short Touch (<= .5 seconds)";
        }
        self.lbTime.text = [NSString stringWithFormat:@"Exact time: %f seconds", deltaT];
    }
}

– (void)viewDidLoad
{
    [super viewDidLoad];
        // Do any additional setup after loading the view, typically from a nib.
}

– (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    self.lbDisplay = nil;
    self.lbTime = nil;
}

– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

@end

After synthesizing the properties, we’ve added two methods: touchesBegan: withEvent: and touchesEnded: withEvent:. In touchesBegan, after verifying that only one finger is involved in the touch, we simply obtain the current time in self.startTime. In touchesEnded, we again get the current time, then calculate the time difference between “now” and the startTime. The timeIntervalSinceDate: method of an NSDate object returns a float: this is the difference between two NSDates expressed in seconds. (NSTimeInterval is simply an alias for float.)

In viewDidUnload, we release both of the label objects, since they were retained by the viewController (they are “strong” properties).

Now run the application. As expected, not only does it inform the user whether the touch was “long” or “short,” but also exactly how long the touch lasted.

In most cases, we can use the new gesture recognizers provided for us in Interface Builder. But if we need to get the exact duration of a touch, the procedure just discussed provides an easy way.