When I press enter on an NSTextField to send what ever's in the text field, it sends it, but highlights what ever's in the NSTextField. Does anyone know how to make it so that once it sends the command in, it deletes what ever's in the NSTextField?
Thanks,
Elijah
...
Hello,
I would like to ask about the memory management problems in objective C. I am the green of the objective C. When I read some of the sample program from the Apple website, I saw a [XXX release]. I guess this statement is used to release the use of the variable. However, when I use this statement in my program, I got some problems...
I'm using the UITableViewCellStyleValue1 for my table cell style. That's the one that puts the textLabel on the left, left aligned, and the detailTextLabel on the right, right aligned.
Some of the data I'm passing to the cell, at times, is to long for the label and I get the the truncated look with the ... at the end.
I think it would ...
hi all
in my application images are loaded from rss feed in table cell. they are of variant size how can i fix them to certain size. my code is
int blogEntryIndex1 = [indexPath indexAtPosition: [indexPath length] -1];
imgstring=[[blogEntries objectAtIndex: blogEntryIndex1] objectForKey: @"image"];
NSURL *url = [NSURL URLWithStrin...
does it hurt performance to have multiple UIWebViews in the same screen? how do I use a busy indicator while the web page is loading and display the fully loaded page once all contents have been downloaded?
...
When one of the UITextFields I have becomes active it causes a Memory Warning, this is what I see in the console:
Received memory warning. Level=2
The thing is that the UITextField has a Font Size 32, Bold, Courier New & I think that loading that specific font is causing the memory warning, is loading a font that "heavy"? if so why? I ...
Hi Everyone,
I’m trying to make a counter which shows the number of days until we leave on a trip to Europe. It’s only about 70 days (as of today) so I don’t believe that I should have to worry about astronomically large numbers or anything, but I really am stumped - I’ve attached the code that some friends have given me, which don’t wo...
I need a UIWebView to show a html page. if internet is not available it will show the last downloaded version. if has internet then it downloads the most current version and replaces and shows the version just downloaded. how can I do this? Thanks
...
Hi
I'm currently doing this to add a button to my navigation bar to call the SwitchViews method.
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"Back to App"
style:UIBarButtonItemStyleBordered
...
Hello,
I want to ask about the iPhone application objective C problem.
I wrote a program to store the cookies and pass to another URL to retrieve the cookies.
However, I found that one of the return status code is 0. The content of the html is empty.
Can any one help me?
The following is my code.
// create a new mutable url
NSMutab...
I'm working with CGContext to create a simple square with four given points (the points should make a perfect square). However, instead of a 200px x 200px square, the iPad app makes, what looks like, 680w by 300h. Am I missing something?
int beginPointX, beginPointY, gridSize, gridPadding;
gridSize = 200;
gridPadding = 10;
beginPointX...
Hi,
I want to sent post request, but i need to send multiple files,
how to do this?
tnx
...
Hello,
I am writing an iPhone application and I would like to connect to a 'HTTPS' server to get some information. However, I get the error in the console which is
NSUnderlyingError = Error Domain=kCFErrorDomainCFNetwork Code=-1202 UserInfo=0x3e95cf0 "The certificate for this server is invalid. You might be connecting to a server that...
hi guys...
I am working on an iPhone application. Application has a navigation bar at the top. I have two views say "root View" and "Child view"
..i need to replace navigation bar on the top in "Child View" With (320*20)px View (or custom tool bar) with a custom back button on the top left corner..please help me..
thx in Advance...regard...
I am trying to locate a message which I can override and then save changes to my application.
On MainWindow.xib I have placed a UIView and set its class (in interface builder) to be my Custom view TouchDrawView.
In TouchDrawView I have a bunch of code for handling touch events and 2 arrays which track these touch events.
My applicatio...
Hi everyone,
I have a NSMutableDictionary, and my keys are objects (and the class implement the NSCopying protocol).
I add a value in the dictionary associated to a key, then, when I call the objectFoKey: method for the key which is in the dictionary, randomly, sometimes the method call "isEqual" and the key is found, and sometimes, th...
how can I have a back button and another button both on the left side of the nav bar?
...
im having an issue with my tableviews and threaded data. in my app im downloading data in xml, including an image url which im then parsing to get the image for my tableviews.
im using the asyncimageview class (markj.net). if i thread the download of my xml, then realoadData the cells appear fine , appart form the images never load, unt...
I currently have an application that requires the user to maintain a VPN tunnel, on load i check if the VPN tunnel is available.
I am wondering if there is anyway for me to display a UIAlertView which on clicking "OK" takes the user to the iPhone main settings screen, so they can turn on VPN.
I know how to store app specific settings a...
I am just curious if reusing a variable assigned to a convenience method is ok.
NSDictionary *address = [NSDictionary dictionaryWithObjectsAndKeys:@"Italy", @"Country",
address = [NSDictionary dictionaryWithObjectsAndKeys:@"England", @"Country", nil];
or should I just assign a 2nd new variable?
NSDictionary *address = [NSDictionary...