Can I have bonjour over the internet, I mean can i connect devices across the internet instead of intranet..??
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
The incredibly thin Apple Wireless Keyboard uses Bluetooth technology, which makes it compatible with iPad
iPad inspires creativity and hands-on learning with features you won’t find in any other educational tool
Apple announces 4th generation iPad packing an A6X CPU
Can I have bonjour over the internet, I mean can i connect devices across the internet instead of intranet..??
I upgraded to Safari 6 about 3 months ago and was preplexed that I couldnt figure out how to add a new css rule in the web inspector. It used to be there was a menu that had the option to "add new css rule". Since this is kind of a dealbreaker for me in my development process, I have moved to using Chrome for the past coulple of months.
But this is really bugging me as there has to be a way to do this. Does anyone know. What am I missing.
The documentation for safari says that this option is in the gear menu but I don't have a gear menu? Am I missing something? (see screenshot below)
And here is a screenshot of my inspector window. I don't see the gear menu.
I am wondering if I have a bad install or something.
Thanks for the help!
I decided to try and install php from source--just to see if I could do it. After messing around with vagrant unsuccessfully, I decided vagrant was way too complicated, and I installed php from source myself. In case anyone else is interested in how I installed php, I followed the php install instructions here (which are the Unix install instructions, which the Mac Install Instructions said to use):
http://www.php.net/manual/en/install.unix.apache2.php
Here are some clarifications of some of the steps:
3) I ignored step 3 (because I had already installed apache):
Build and install Apache. Consult the Apache install documentation for more details on building Apache.
cd httpd-2_x_NN
./configure --enable-so
make
make install
Apparently the apache install does the --enable-so by default.
5) I had previously installed mysql, and the --with-mysql flag, succeeded in allowing me to access my databases from a php script.
6) Make sure you do step 6:
cp php.ini-development /usr/local/lib/php.ini
I guess by default php reads the php.ini file located at /usr/local/lib/ and there isn't one there until you copy it.
7) The php install took care of adding the specified line to apache's http.conf.
8) I added the following to http.conf:
SetHandler application/x-httpd-php
9) To test your php install, start apache then create a file called my_test.php containing the following:
echo "My first PHP script!";
phpinfo();
?>
Put that file in the directory /usr/local/apache2/htdocs. Then use the following url in your browser:
http//localhost:8080/my_test.php
(Note that in apache's httpd.conf file, I have this line:
Listen 8080
which makes apache listen on port 8080, which means I have to include the port in the url.)
If you scroll down the resulting page, you can see lots of php/mysql/apache configuration info.
Is there a way to get text cursor location in screen coordinates, in MS Word for Mac? I tried with AppleScript and AXUI and none worked for me.
I need to do this from an external app.
Thanks,
Codrin
Just to let you know, I am new to Apple OS and Xcode. My experience is mostly with Windows. Many of the excercises are different and separate. Some build on top of the previous excerise. Yes, I can open a separate window copy and paste. But, mistakes can easily made that way. I would prefer to be able, just like a Word doc or a Excel spreadsheet, open the file, perform a "save as" with a different file or project name then move on and make my changes. I am not familiar with code snipets. Besides this isn't a project where you drag and drop usable code. These are exercises which cover different topics and many times unrelated to the next chapter.
Thanks
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?
UIImage strips extra metadata off. Also, JPEG is a compressed photo format, and UIImageWriteToSavedPhotosAlbum uncompresses and recompresses the photo. JPEGs can never be recompressed 100% quality.
I have a txt file which has data written in a particular format as below:
My requirement is to copy the data within each tags to a separate file . eg: File1 should have
Please help..!!
Just to let you know, I am new to Apple OS and Xcode. My experience is mostly with Windows. Many of the excercises are different and separate. Some build on top of the previous excerise. Yes, I can open a separate window copy and paste. But, mistakes can easily made that way. I would prefer to be able, just like a Word doc or a Excel spreadsheet, open the file, perform a "save as" with a different file or project name then move on and make my changes. I am not familiar with code snipets. Besides this isn't a project where you drag and drop usable code. These are exercises which cover different topics and many times unrelated to the next chapter.
Thanks
It is working fine here. Maybe bring it up in Safari, inspect element, and download the video file.
Well, that's a new property. The Question was about a new rule. I have the same question too.
Ok, so I am trying to update some albums that I have on iTunes Connect. I am using iTunes Producer to do it and it has been going along rather smoothly until now. When I go to deliver the music, it says;
ERROR ITMS-5112: A
The problem is that I cannot change the language in Producer. Do I have to open a ticket on connect to solve this?
Next is the vendor ID issue. Some of you may know that iTunes used to use dashes to seperate ISRC's into sections. They changed that and updated the metadata for the ISRC and vendor ID on connect automatically. Apparently the vendor ID on the albums I have up that were created in 2006 or before were not changed on connect and this is causing me to not be able to update my songs. Basically it updated all of my ISRC's on connect but not the vendor ID's and it is causing a conflict. I cannot change the ISRC or vendor ID on Producer or Connect so am I going to have to rebuild the albums? The error message is as follows;
WARNING Error ITMS-4062: "Vendor Identifier" XX-XXX-XX-XXXXX is invalid according to the configured pattern '[a-zA-ZO-9]\wt' for provider ______" at Album/Tracks/Track (MZItmspTrackPackage)
Hi guys,
i am having endless issues with the syntax of the following applescript. Please help me and i'll make you my new god, cheers. The
applescript syntax is:
tell application "Finder"
display dialog ¬
"Select Output Source" buttons {"Computer", "TV"} default button "TV"
set InternalSpeakers to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")
--InternalSpeakers is now a variable which changes the sound output to Computer
set HDMI to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Soundflower (16ch)'")
--InternalSpeakers is now a variable which changes the sound output to TV
if button returned of result = "Computer" then InternalSpeakers
if button returned of result = "Computer" then HDMI
end tell
at the moment i am getting the following error:
I have tried arranging and re-arranging the applescript to no avail, please help me
Hi guys,
i am having endless issues with the syntax of the following applescript. Please help me and i'll make you my new god, cheers. The
applescript syntax is:
tell application "Finder"
display dialog ¬
"Select Output Source" buttons {"Computer", "TV"} default button "TV"
set InternalSpeakers to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")
--InternalSpeakers is now a variable which changes the sound output to Computer
set HDMI to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Soundflower (16ch)'")
--InternalSpeakers is now a variable which changes the sound output to TV
if button returned of result = "Computer" then InternalSpeakers
if button returned of result = "Computer" then HDMI
end tell
at the moment i am getting the following error:
I have tried arranging and re-arranging the applescript to no avail, please help me
Hello everybody,
I am Jona. I am very fresher to iphone app development.
I have a doubt in creating UITableview controller and adding content to this controller dynamically.
Please help me.
For example.
|
These are the screen shots for my simple project.
Now, I need to read a text from a textfield and insert that text into a set.
How to do it dynamically?
Please help me.
I have created an app, and sign it and validated it. But when i try to uplad it itune connect that it will failed to upload whith this error :
1. Communication error. Please use diagnostic mode to check connectivity. You need to have outbound access to TCP port 443.
2. An exception has occured : Operation timed out
3. Could not connect to Apple's web service.
4. Unable to autheticaticate the package: 608870878.itmsp
And geting this warnings :
1. Transporter update failed with unexpected exception.
2. An exception has occured: Operation timed out
I am using internet connection that have 2 MBPS speed so, i dont have any problem with internet connection. And also my firewall is turned off so port 443 is also not issue. I am using Xcode version 4.6. And i have uploaded app before from my mac, but at resent i have upgraded my xcode and now i am unable upload app. I am on proxy network, But as i said i have uploaded app before so proxy is not problem.
Is it possible to download certificates(required to deploy app to real device)
when you're not registered apple developer, but just a member of team with licence?
diskutil does not have any options to list sectors/tracks/cylinders for a disk. This is not working for my scenario.
Just to let you know, I am new to Apple OS and Xcode. My experience is mostly with Windows. Many of the excercises are different and separate. Some build on top of the previous excerise. Yes, I can open a separate window copy and paste. But, mistakes can easily made that way. I would prefer to be able, just like a Word doc or a Excel spreadsheet, open the file, perform a "save as" with a different file or project name then move on and make my changes. I am not familiar with code snipets. Besides this isn't a project where you drag and drop usable code. These are exercises which cover different topics and many times unrelated to the next chapter.
Thanks
Can anyone tell me where I can download the developer_identity.cer file from on Apple's web site? I need this for creating an app, if that helps any.
Thanks in advance
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?
You're over complicating the situation. This
set InternalSpeakers to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")
--InternalSpeakers is now a variable which changes the sound output to Computer
sets InternalSpeakers to what the do shell script returns. It does not set InternalSpeakers to hold the do shell script command to run when you access the variable. There are ways to do this but its not needed here. Just do thsi as a simple if then else
display dialog ¬
"Select Output Source" buttons {"Computer", "TV"} default button "TV"
if button returned of result = "Computer" then
do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'"
else if button returned of result = "TV" then
do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Soundflower (16ch)'"
end if
Something like this will work. Also there is no reason for the code you show to do it in a tell block. The Finder isn;t needed for this.
In Xcode,
menu > navigate > jump in {current file} , and its shortcut is ?L,
Type line number work well, but what's the "Symbol"? I didn't find way to use it.
What is the 'symbol' referring to and how to use it?
thanks!
I got Code signing error when i was trying to run my Xcode Project Run on my iPad. what can i do?
i can't make a Provisioning Profile.
How to manage that.?
I got the solution "ImageMagic" updated one and it is working fine . For unsharp mask please go through the user guide .
Thanks
Hi,
Are you loading the data in didFinishLaunching ??
If yes then that is the problem.
ios defines a specific time for app launch, if your app takes more than the allowed time, ios will crash the app.
Possible solution might be move the webservice call from there to some other suitable place, this will ensure that you app will launch regardless of any network issue, which can be handled later.
I have a code I compiled using C++ XCode that is dependent on some 3rd party libraries and frameworks. Upon compiling the .app file, I try to move it to another mac and run it but it won't work. It complains about missing libraries and so on. I'm assuming at this point I need to include the "framework" libraries with my app. What is the best method to do this? Can anyone assist? Thanks so much!
Hi! I'm from the Philippines and I'm planning to buy an iPad mini in Japan, so i'm thinking if there would be any problem regarding it's software? I've asked a friend from Japan and said that some software are being changed to fit in (but he didn't specifically say apple gadgets) like an american game doesn't work in the device. So would there be a difference if I buy it in US, or in Japan, or in Philippines? Thanks!
There is no add function in standard C. If a tutorial includes a function call like add(3,4), then either they have defined the function somewhere in the tutorial (like Frank Caggiano has done in his example), or they defined it in a previous tutorial and are simply assuming that you are using everything previous done (which is poor practice in my opinion...)
The mathematical functions provided in standard C are defined in the header file math.h. In the terminal, you can type "man math" to get teh manual page describing this header. Otherwise, the binary math operators +, -, etc, etc are used exactly as they would be in normal infix arithmetic.
Just to let you know, I am new to Apple OS and Xcode. My experience is mostly with Windows. Many of the excercises are different and separate. Some build on top of the previous excerise. Yes, I can open a separate window copy and paste. But, mistakes can easily made that way. I would prefer to be able, just like a Word doc or a Excel spreadsheet, open the file, perform a "save as" with a different file or project name then move on and make my changes. I am not familiar with code snipets. Besides this isn't a project where you drag and drop usable code. These are exercises which cover different topics and many times unrelated to the next chapter.
Thanks
What is the best game engine for 2D games development?
I'm new to games development and thinking of chosing between cocos2d and OpenGL ES..........are the other engines better?......
It sounds like the Standard IOS developer program should work for you.
You're right in assuming that the University program wouldn't be for you. It is really meant for schools teaching IOS development.
The Enterprise program sounds like over kill for what you are looking to do.
In the standard program you can do what they call Ad Hoc distribution. You can distribute to 100 iOS devices directly, not through the App Store. Do you think you'll be distributing to that many devices?
THe images are in my project folder:
I don't get what could be the error, the files are in the folder, where else should they be?
Hey everyone. I recently decided that I want to become a computer programmer. I'm going off to college next year and plan on majoring in computer science. I took some computer classes in high school and had a little bit of programming here and there in Arduino, and a little C. Mostly I just learned the basics of functions and loops and variables. I am obsessed with everything Apple so obviously I want to go into iOS development. Is it ok that I just went straight into Objective-C? I am reading Objective-C Programming: The Big Nerd Ranch Guide right now and I seem to understand most of it. I just never really had any interest in developing for anything else besides Apple products. Is this ok? Any suggestions on what I should do from here and if I am going on the right track?
diskutil does not have any options to list sectors/tracks/cylinders for a disk. This is not working for my scenario.
There is no add function in standard C. If a tutorial includes a function call like add(3,4), then either they have defined the function somewhere in the tutorial (like Frank Caggiano has done in his example), or they defined it in a previous tutorial and are simply assuming that you are using everything previous done (which is poor practice in my opinion...)
The mathematical functions provided in standard C are defined in the header file math.h. In the terminal, you can type "man math" to get teh manual page describing this header. Otherwise, the binary math operators +, -, etc, etc are used exactly as they would be in normal infix arithmetic.
trludt wrote:
I just never really had any interest in developing for anything else besides Apple products. Is this ok?
It's fine with me
Any suggestions on what I should do from here and if I am going on the right track?
Develop a thick skin and don't publicize your platform preference. Many people flat-out hate Apple and everything about it.
THe images are in my project folder:
I don't get what could be the error, the files are in the folder, where else should they be?
What is the best game engine for 2D games development?
I'm new to games development and thinking of chosing between cocos2d and OpenGL ES..........are the other engines better?......
There is no add function in standard C. If a tutorial includes a function call like add(3,4), then either they have defined the function somewhere in the tutorial (like Frank Caggiano has done in his example), or they defined it in a previous tutorial and are simply assuming that you are using everything previous done (which is poor practice in my opinion...)
The mathematical functions provided in standard C are defined in the header file math.h. In the terminal, you can type "man math" to get teh manual page describing this header. Otherwise, the binary math operators +, -, etc, etc are used exactly as they would be in normal infix arithmetic.
You're over complicating the situation. This
set InternalSpeakers to (do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'")
--InternalSpeakers is now a variable which changes the sound output to Computer
sets InternalSpeakers to what the do shell script returns. It does not set InternalSpeakers to hold the do shell script command to run when you access the variable. There are ways to do this but its not needed here. Just do thsi as a simple if then else
display dialog ¬
"Select Output Source" buttons {"Computer", "TV"} default button "TV"
if button returned of result = "Computer" then
do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Built-in Output'"
else if button returned of result = "TV" then
do shell script "cd ~/Downloads/SwitchAudioSource-v1; ./SwitchAudioSource -s 'Soundflower (16ch)'"
end if
Something like this will work. Also there is no reason for the code you show to do it in a tell block. The Finder isn;t needed for this.
There is no add function in standard C. If a tutorial includes a function call like add(3,4), then either they have defined the function somewhere in the tutorial (like Frank Caggiano has done in his example), or they defined it in a previous tutorial and are simply assuming that you are using everything previous done (which is poor practice in my opinion...)
The mathematical functions provided in standard C are defined in the header file math.h. In the terminal, you can type "man math" to get teh manual page describing this header. Otherwise, the binary math operators +, -, etc, etc are used exactly as they would be in normal infix arithmetic.
Hi,
I'm currently working on finalizing an App for a customer, he wanted some extra devices to test the app and sent me de UDID's.. I've tried to add these UDID's at the provisioning portal, it seemed to work (got no errors) but these 3 devices do not show up anywhere! Nothing in the logs either.. So I tried to add them again but i got "Device ID already exists." This is quite a problem now, I promised them to be able to test with these new devices but I can't generate a new provisioning profile now .. What the heck is going on?
Regards
Ivo
EDIT: nevermind.. they showed up after all.. seems like a database needed syncing or something.
Message was edited by: ivotoby
Hey guys. I'm thinking it's time for me to get my own work setup so I can get myself organized to kick off my programming career. Im goin off to college this next fall, but it's only 20 minutes from my house. As of now, all i've got hardware-wise is a 2009 MacBook Pro with 8GB RAM and an HP monitor i use as an extra screen. I can't decide whether I should go out and get an iMac so that I could have a permanent setup at my house along with my portable setup with my laptop. Or if I should get a new Macbook Pro and continue along with my one computer setup. I'd love to hear some good ideas from other developers and see what you guys can think of. Thanks!
I am working on some Obj-C excercises from "Programming in Objective-C". I would like to keep each excercise as a separate project for future reference. Currently I am creating a new project and then copy / paste the main.m code from a previous exercise which is a pain. I am working as an individual on a Mac-Mini and not in a shared environment. What information I have seen is geared for a shared multi-developer environment. Or, is there a way to open a project and rename - "save as" - it like you can do with a Word document. Thanks.
xCode interface builder:
When I try to change the color property of a label's text by using the RGB values, the background color also changes to the same value automatically.
in other words:
While setting the RGB values for text colour of labels, the background colour also changes unless we use the sliders.
How to make sure that only the color of text changes and not the background?
Why hasn't Apple made an actual tablet? I'm not talking about the iPad. The iPad is not a real tablet. It's a giant iPod touch. And essentially useless if you have a computer and an iPhone.
What I want is a real tablet computer. A laptop with OS X that has a keyboard, and a touch screen that swivels so it can hide the keyboard and be used as a tablet. The key element is really that it uses OS X, and not iOS. To be able to use full photoshop, and art programs using a stylus without an external tablet would be incredible, and it is seriously mind-boggling that apple hasn't done this yet, because they obviously have the technology to do it. There were a few windows versions of this quite a few years back, but the apple interface is just so much better for it. I just really want to see this become a reality.
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.
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?
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!
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?
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?
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?
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