Having loaded two different images I want to do the following operation and obtain image3.
image1.red * image2.alpha = image3.red
image1.green * image2.alpha = image3.green
image1.blue * image2.alpha = image3.blue
I wrote the code in the link below for Android and was basically looking for the same functionality in Objective-C/Cocoa. ...
The example code "Handling a Complex Multi-Touch Sequence" in the Event Handling section of the iPhone Application Programming Guide provides an incomplete example that assumes the reader knows enough fill-in the blanks. I know enough to know that I don't know enough to do that without some clarification.
In Listing 3-6, I assume touchB...
Hi,
Does anyone know if the following code could be problematic:
NSString *addchar = nil;
if (case1)
addChar = [[firstname substringToIndex:1] capitalizedString];
else
addChar = [[fullname substringToIndex:1] capitalizedString];
Assume that firstname and fullname aren't null or empty. Does initializing the NSString object and setting...
I haven't been able to find any sort UIBarButtonSystemItem representing tha "Back" button in Mobile Safari. I want my UIWebView's controls to look just like the ones in Mobile Safari so it makes sense. Would the best solution be to just screenshot UIBarButtonSystemItemPlay (same image as the Forward button) and flip it?
Thanks.
...
I googled a lot. Some people are saying do this. Some are saying it's not possible. Install Mac OS X on a virtual machine, etc., etc.
I have a simple question.
Is it possible that I can practice Objective-C programming on a Windows 7 machine?
If yes, how? Please, if possible, provide me with a necessary link. My ultimate goal is to go ...
Hi all - I've got a background process that makes a transparent window appear when a hotkey is pressed:
[window makeKeyAndOrderFront:nil];
[[content animator] setAlphaValue:1.0]; // alpha was 0.0
... the window shows up fine & in front of the other windows (as I want it to), however until I manually click the window whatever applicati...
Here's my code:
if ([window isVisible]) {
[NSApp activateIgnoringOtherApps:YES];
[window orderOut:nil];
return;
}
[NSApp activateIgnoringOtherApps:YES];
[window makeKeyAndOrderFront:nil];
return;
but if the user clicks/changes the current window and then clicks on menu bar it will close the window. How do I stop that?
...
Is there a library compatible with PCRE that can be used on Mac OS X 10.6, and which is Unicode compatible?
I was thinking to use the predicates, but it is a little excessive when the application is not already using Spotlight predicates.
...
I am trying to do something very basic, but no luck so far. Here is what I need to get done.
Parse an XML file.
<cars>
<car>
<company>BMW</company>
<model>ABC</model>
</car>
<car>
...
...
</car>
</cars>
I have created 2 classes (subClass of NSObject) one is Car and nother is junkyard. Car class holds all the data of...
What are the most useful open source libraries you have used in your iPhone Objective-C development? Any libraries that help you be more productive and can be a great asset for writing a new app.
...
Hi,
I am trying to load image from a remote server on the UIImageView in my application. Is it possible to load image from a remote server. I am using the following code
id path = @"http://upload.wikimedia.org/wikipedia/commons/c/c7/Sholay-Main_Male_Cast.jpg";
NSURL *url = [NSURL URLWithString:path];
NSData *data = [NSData dataWithCon...
Hi,
I am new to this i phone app programming.
I have a function with one argument type as structure pointer. This is shown below
-(void)responce:(structurePtr *)someData
{
......
......
}
I want to call this function using performselector method after 5 seconds of time interval. Please tell me how to call above responce function usi...
I am using mpmovieplayer in my application.I have a button for playing movie witch has an image of play.But when mpmovieplayer plays movie i can see that button on movie player's overlying controlls like when i pause movie i see my play button instead of movie player's default button.Also i have customized navigation bar and i can see th...
Hi,
I need to know which is equivalent concept of Java's property class in Objective-C?
...
Hello!
I want to implement the rotation in my application.
So I made my canvas autoresizing. Here's the code:
_canvas.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
But when I try to draw on it with touch the coordinates are bad.
Bad, I mean I touch somewhere on the screen the touchevent gives ...
Hi....
Issue1:
I want to show an alert window or message box before the Main Window of the Application is launched. When im using the NSRunAlertPanel() it is not showing the alert window.It is directly launching the Application's Main Window.
Issue2:
I want to create an Modal (login dialog) and message boxes in an thread spanned from ...
I've no idea why, but on occasion I've managed to fix some compile errors, most notably
error expected specifier-qualifier-list before 'someClass'
by moving #import "someClass.h" from the .h file into the .m file. This has also worked with a couple of other problems i've encountered that have been (mysteriously from my point of view)...
As you can see in the code below I am creating and initialising a Vertex which I then add into a NSMutableArray instance variable within my Frame object. As I currently have this setup myVert is owned by main and pointed to by vertexList. Would I be better setting this up so that I make a copy of inVertex within the addVertex method so t...
Hi,
Scenario: Im elstablishing a connection with an http server using libcurl and downlading a files.(by writing the response from the server into the file).
When im debugging my code im able to find the file saved in the specified path, and im also creating some log files which im able to find while debugging.
But, Once im creating t...
I'm looking at developing an app that could benefit from having a image recognition system. I've seen this sort of thing in iPhone and Android apps. Take a picture of a book and the app takes you to Amazon where you can find that book. I'm not looking for general image recognition, but more the ability to pick a single image out of a lib...