IPAD must-haves. And fun-to-haves.

Brighten your iPad with a colorful cover, stream to your TV, download pictures from your digital camera, and more. There’s already so much you can do with iPad and iPad mini

Apple Wireless Keyboard

The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad

Apple unveils iPad mini: ‘Thin as a pencil, light as paper’

iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool

Lightning connector and FaceTime HD camera

Apple announces 4th generation iPad packing an A6X CPU

Pages

Tuesday, February 26, 2013

Failed to submit to the appStore while validation is OK

I try to submit an app to the appStore using xcode 4.3.1.

Validation is ok but when the upload starts I get the following messages:

 

- Apple's web service operation was not successful

- Unable to authenticate the package: 383327395.itsmp

- Exception occurred when creating MZContentProviderUpload for provider. (1004)

 

Does anyone already got this and found a solution?

 

Tx.


View the original article here

Show Window without activating (keep application below it active)

I need to show a window (without title bar) above third party applications without my window taking focus.

I have tried using an NSPanel and setting enabling non-activating, but that didn't help.

I tried orderFront:self, but that didn't help either.

I always needed to add [NSApp activateIgnoringOtherApps:YES]; because the window wouldn't show otherwise.

I have here a sample project for just this functionality:
http://users.telenet.be/prullen/TopW2.zip

UIElement is set to true in the application's plist file, so there is no dock. You can activate the window by pressing ALT + SPACE at the same time. You will see that the app below it looses focus. Any thoughts on how to fix this? I've seen other apps do it so I know it's possible.

Edit: here's the code so far. Remember the window is a non-activating NSPanel. I still need that last NSApp activateIgnoringOtherApps line or otherwise it doesn't display. But of course that makes the window the active one.

_windowController = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowController"]; 

[[_windowController window] setLevel:NSNormalWindowLevel+1];

[[_windowController window] orderFrontRegardless]; 

[_windowController showWindow:self]; 

[NSApp activateIgnoringOtherApps:YES];

I've also subclassed NSPanel and added two methods:

- (BOOL)canBecomeKeyWindow { return NO; }  - (BOOL)canBecomeMainWindow { return NO; }

(I also tried canBecomeKeyWindow return YES and several other levels (for setLevel).

 

Any ideas?


View the original article here

How does the Mac App Store work?!

Hey guys i recently posted this quesiton in a different area of the community but instead of being helped was just ridiculed for posting in the wrong place... +1 for helpfulness guys :/ lol Anyways... ive been told to ask in the development section.. I have a $9.99 app and it was sitting at 10th place in the top grossing apps a few weeks ago on the UK app store, now I noticed in the morning that it was ahead of an app which was 49.99 so i presumed that I must have sold at least 5 or 6 to be ahead of him (my idea of top grossing is quantity x price) but when itunesconnect released their reports in the afternoon it turned out that i'd only sold 1 copy.. so what im asking is basically how does the top grossing section work? and how regularly does it update? is it live? daily? etc

 

Thanks in advance!


View the original article here

Which program should I join?

I am looking over the different options and not seeing any clear answer about which of the programs I should join.

 

I am part of a private high school and I intend on making apps that are just for use within the school but I am not sure that I understand what adavantages or disadvantages each of the program would offer me.  If I don't want the whole world to be able to download the app, I assume I would have to go the Enterprise route but I don't know how internal distribution would be that much of an advantage for us.  And since we're not a college, I can see us not qualifying for the University program.

 

Thoughts?  Suggestions?


View the original article here

Mac app In-app Purchase : Invalid product ID

Thanks for reading. I'm having problem with Mac app In-app Purchase.

I just setup Mac developer account with $99 subscription.

1) Go to Developer Certificate Utility, create App ID: com.mpham.TestIAP, create certificate, add my Mac ID to System list. Final, add Provisioning profile (development)

2) Go to iTunes connect, create App: com.mpham.TestIAP, create IAP: com.mpham.TestIAP.IAP1. Final, make app status to "Waiting For Upload"

3) I create simple Cocoa app: com.mpham.TestIAP, choose Code sign to com.mpham.TestIAP

 

 

    //

    //  AppDelegate.h

    //

   

    #import

    #import

   

   

    @interface AppDelegate : NSObject

    {

        SKProduct *proUpgradeProduct;

        SKProductsRequest *productsRequest;

    }

   

    @property (assign) IBOutlet NSWindow *window;

    @end

 

 

 

 

and

 

 

    //

    //  AppDelegate.m

    //

   

    #import "AppDelegate.h"

   

    #define k1 @"com.mpham.TestIAP.IAP1"

    #define k2 @"IAP1"

   

   

    @implementation AppDelegate

   

    - (void)applicationDidFinishLaunching:(NSNotification *)aNotification

    {

        if ([SKPaymentQueue canMakePayments])

        {

            [self requestIAP1];

            [self requestIAP2];

           

        }

       

   

    }

   

   

    - (void)requestIAP1

    {

        NSLog(@"requestIAP1");

        NSSet *productIdentifiers = [NSSet setWithObject:k1];

        productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];

        productsRequest.delegate = self;

        [productsRequest start];

       

    }

    - (void)requestIAP2

    {

        NSLog(@"requestIAP2");

        NSSet *productIdentifiers = [NSSet setWithObject:k2];

        productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];

        productsRequest.delegate = self;

        [productsRequest start];

       

    }

   

    #pragma mark SKProductsRequestDelegate methods

   

    - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response

    {

        NSArray *products = [[NSArray alloc] initWithArray:response.products];

       

       

        for(SKProduct *item in products)

        {

            NSLog(@"Product title: %@" , item.localizedTitle);

            NSLog(@"Product description: %@" , item.localizedDescription);

            NSLog(@"Product price: %@" , item.price);

            NSLog(@"Product id: %@" , item.productIdentifier);

        }

       

        for (NSString *invalidProductId in response.invalidProductIdentifiers)

        {

            NSLog(@"Invalid : %@" , invalidProductId);

        }

    }

   

    #pragma mark - PaymentQueue

   

    -(void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray *)transactions

    {

    }

   

    -(void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error

    {

    }

   

    -(void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions

    {

    }

   

    -(void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

    {

    }

   

    @end

 

 

 

 

It's run and show the log

 

 

    2013-02-18 16:59:14.948 TestIAP[12646:403] requestIAP1

    2013-02-18 16:59:14.951 TestIAP[12646:403] requestIAP2

    2013-02-18 16:59:15.939 TestIAP[12646:1b03] Invalid : IAP1

    2013-02-18 16:59:16.043 TestIAP[12646:1b03] Invalid : com.mpham.TestIAP.IAP1

 

 

It's mean there is Invalid product, but I created product in iTunesConnect, could anyone please help me?


View the original article here

How to connect an iPad to Apple Instruments via wireless to run automated tests?

Hello,

 

I wanted to connect an iPad with Retina Display to Apple Instruments wirelessly to execute automated tests on it. How do I go about it?

 

I came across this link, http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/ InstrumentsUserGuide/GatheringDatafortheFirstTime/GatheringDatafortheFirstTime.h tml#//apple_ref/doc/uid/TP40004652-CH5-SW1

 

It says that if you have Bonjour and multicast on your network, then it can be done. I followed all instructions, but still it doesn't work. Does anyone know how to do this?


View the original article here

NSImage resizing on retina devices, saving my image into just double size. I want resize should not affected by device type.


I'm developing an app for Mac OS X.


I'm trying to resize any NSImage into a specific size like 200x300. It is working fine for Non-retina Mac.


But For Retina Mac, it is resizing the image as 400x600 which is just double, as we are expecting.


My project need is to resize the image as per given size regardless, the device on which application is running is retina or non-retina.


Is there any way to achive the target?


I have tried to measure the scale property, as for retina the scale is 2.0 so we are resizing the image for just half of the required.


But when we connected to monitors, one is retina and other is not retina, it again generating the same problem.


Here is the code which I have used for resizing:


-(void)resizeImageNSImage *)sourceImage newSizeCGSize)newSize
{


   
NSString *newImagePath = [[[Utility documentPath] stringByAppendingPathComponent:imagefolder] stringByAppendingPathComponent:@"imageName"];



   
[sourceImage setScalesWhenResized:YES];
   
[sourceImage setSize:newSize];


   
NSImage *newImage = [[NSImage alloc] initWithSize:newSize];

   
[newImage lockFocus];

   
NSRect frame = NSMakeRect(0, 0, newSize.width, newSize.height);

   
[NSGraphicsContext saveGraphicsState];

   
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:frame xRadius:0 yRadius:0];
   
[path addClip];

   
[sourceImage drawInRect:frame fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];

   
[NSGraphicsContext restoreGraphicsState];

   
[newImage unlockFocus];

   
CGImageRef CGImage = [newImage CGImageForProposedRect:nil context:nil hints:nil];
   
NSBitmapImageRep *imgRep = [[[NSBitmapImageRep alloc] initWithCGImage:CGImage] autorelease];


       
NSData *data = [imgRep representationUsingType:NSPNGFileType properties: nil];
       
[[NSFileManager defaultManager] createFileAtPath:newImagePath contents:data attributes:nil];

   
[newImage release];

}


Any help would be very helpful for me.


Thanks


View the original article here