Hi,
I have some difficulties grasping some concepts. Grateful for help.
Let's say you have the following piece of code:
int *intPtr; // creates a pointer
int count = 10; // initiates an intiger variable
intptr = &count; // ??
The & operator gives the address to a variable, in this case the integer count. The address is then assig...
I am writing my first iPhone App, a test case before I write my life saving app to help me learn how things are done on this platform. So I used the standard ModelViewController widget and created my app. I put my UI on the default view and added all the glue code in the ViewController.m/.h files: event handlers, IBOutlet mappings to c...
Getting up to speed with Cocoa iPhone/Mac development, I know the difference between atomic and nonatomic properties, and the performance difference with nonatomic, but every definition of IBOutlet properties I've seen specifies nonatomic, over the default atomic. I've not been able to find an explanation of whether this is a requirement...
From Apple documentation about Memory Management :
The only places you shouldn’t use accessor methods to set an instance variable are in init methods and dealloc. To initialize a counter object with a number object representing zero, you might implement an init method as follows:
To allow a counter to be initialized with a count...
Hello helpful people!
I'm trying to run this MD5 algorithm, which I found on this post on stackoverflow . But I keep on getting the following error:
2010-08-06 14:45:40.971 Intel[3195:a0f] -[TaskController md5:]: unrecognized selector sent to instance 0x108df0
2010-08-06 14:45:40.973 Intel[3195:a0f] *** Terminating app due to uncaugh...
Hello,
How to view the contents of NSMutableDictionary?
Thank You
...
Thnks, thatsdisgusting for giving the respose,
But you told ,i have implemented, but i am not able to fetch the data against the particular key,
As it type is core graphics, So
IF you have any solution please send it to me.
Thanks,
...
I have a requirement to grab images from an rss feed and display these images in much the same way as browsing your picture library and I really dont know where to start first.
I can get tutorials on the rss reader but I really dont know the component to use to allow the user to "swish" through the images on screen
Any help much apprec...
How would one catch loadRequest returning a 404 page,
i am calling the load request like so:
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:qype_url]]];
can't seem to figure out how to catch what it returns so i can deal with this situation and load an error page. If the url is incorrect a blank page is return...
Hi Guys,
I am getting the Collection was mutated while being enumerated exception when I am using this code can any one suggest me how to get out of this.
PaymentTerms * currentElement;
for (currentElement in termsArray)
{
printf("\n currentElement Value........%s",[currentElement.days UTF8String]);
printf("\n Str value...%s",[...
In languages like C++ and C# when you create a contain such as a std::vector or a C# list you explicitly declare the container type when you create it:
C++:
std::vector<MyObject>
C#:
List<MyObject> list = new List<MyObject>();
Looking at the code above, I know immediately that these containers can only contain objects of type MyOb...
Hello all,
So I am working on an iPad app that needs to talk to our company server to pull in some XML. In a browser, when the user tries to first navigate to the site, they are redirected to an SSO form that generates a cookie that is saved.
Now my application may need to replicate this behavior and generate the cookie so we can pul...
I have a multi-line textField in a window. I need the user to be able to hit return in the textfield for its normal purpose.
I have a normal text field, that if the user hits return, I want it to just accept the text
I also have an OKButton, that, if you're not in a textfield, i want return to do the OK button.
Currently, wherever I a...
This one is weird. Hopefully I will ask the right question:
I'm using an md5 method to create a checksum value which I then write to a file. Then afterwards I read the file using this:
NSString * id_From_File = [[NSString alloc]
initWithContentsOfFile:path_to_ID
encodi...
Hey there,
I have got an application, that is getting data via XML-files. During the parsing-part the data is written/inserted to the local sqlite3-database on the device.
So, if the data is syncronized, there does a loading-screen appear (performed in background) and is telling the user, that the data is syncronized.
This is working q...
hi all
i want to use just the result of any online currency converter as a variable in to my program.
double amount_d;
amount_d=[amount doubleValue];
NSString *mar=[NSString stringWithFormat:@"http://www.xe.com/ucc/convert.cgi? Amount=%d&From=%@&To=%@",amount_d,code1,code2 ];
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLW...
Hi, I try to change the background color of my actionsheet, I just use the method:
[actionSheet setBackgroundColor:[UIColor colorWithRed:30 green:30 blue:30 alpha:0.5]];
and I put it in the willPresentActionSheet. But the background color don't change, why?
thx, Alex
...
I'm creating a JNI to display an application wide menu bar instead of the JFrame specific one. This allows me to keep a menubar displayed even when no JFrames are present. I've hit a small snag, in my window menu I can't figure out how to display a diamond for the windows that are minimized. As far as I can tell in the standard API there...
I need help with downloading from webserver...
What i currently do is get XML file from web servers that contains image locations, parse XML, download each image, store image on iphone, and store image name to sql database.
This takes lots of time because there is large amount of images to be downloaded and i am downloading one by one....
How do I refer to the preceding view controller's properties and iboutlets in a uinavigationcontroller stack of views?
For instance, say the first screen has a high score uilabel, and the second screen is the game. How would I update this label from the game screen before popping back to it?
EDIT
Thanks for the answers. I think I wi...