I have a cocoa application. With two NIB/XIB files, one of them is the main (first) window that opens. The second NIB/XIB has some extra windows there.
How do I, for example, in objective c link one NIB button to another?
I know this is a very simple question, but I just can't find the answer.
...
I have a method which extracts the hour and second components form a NSDate by breaking it down into its NSDateComponents. My code is as follows...
unsigned hourAndMinuteFlags = NSHourCalendarUnit | NSMinuteCalendarUnit;
NSCalendar* calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
[calendar setTimeZone:[N...
Checkstyle is a great tool to enforce a code standards for java. We have some projects working with objective-c, and I tried to find some similar tool like checkstyle for Objective-C, but didn't get lucky.
Does anyone know that kind of tool which be used to enforce code standards for Objective-C? Thanks in advance.
...
Hi All,
Any one has integrated Google's Maps Data api available [here][1] (http://code.google.com/p/gdata-objectivec-client/)
[1]: http://code.google.com/p/gdata-objectivec-client/ with iphone application, if so can you please share the skeleton code to get an head start in my application.
I wann to search some nearby places (for user...
Hi, everyone,
I want to ask a question about the iPhone application. I am writing a program with the UINavigationController, and I can click the UITableView cell and go to the detail page. However, I don't know how to create the following table view. (I use the didSelectRowAtIndexPath to go to another page) How can I create this kind of...
Actually i am building a Text Speech reader for which I sucessfullyn implemented but when it read tokens of word so I want my text to highlighted according to the voice as in MS-SAPI
...
Hello All:
the code is:
typedef struct _Package
{
char* data;
int dataLen;
}Package;
Package *pack=(Package *)malloc(sizeof(pack));
pack->dataLen = 10;
pack->data = (char *)malloc(10);
strcpy(pack->data,"hellohello");
NSMutableArray *lstPack = [[NSMutableArray alloc] init];
[lstPack addobjec:pack];
when the program goto [...
I would like to display an icon next to a text item in an single cell of a table view.
An example of what I want to achieve is the application list in System Preferences -> User Accounts -> Login Items.
What's a good way?
...
Hi, everyone,
I want to ask a question about the iPhone application. I create the UINavigationController programmatically. And I use the UITableView to do the following thing. However, I don't know how to change the text of the text in the back button (see below, in this case is 'Plays') in code level? Thank you very much.
Link: htt...
Hi, I have UINavigationBar setup as image - some wood texture. I want to insert UISegmentedControl with 4 buttons on that bar. Buttons should have same texture with slightly changed tint.
One solution would be to change tint alpha of buttons background color, sothat texture in background can get trough, but as I set alpha for tint in ...
Hello,
I am looking for a fast way to bring a window to from from its id (window number).
Do you have any idea for this?
Thanks in advance for your help.
Regards,
...
Hi all!
I made my own class derived by NSObject, and here is my code:
-(void) parseRow:(NSDictionary*) dictionary {
NSArray* arName = [[dictionary valueForKey:displayname] componentsSeparatedByString:@"+"];
[self setDriverName:[arName objectAtIndex:0]];
[self setDriverSurname:[arName objectAtIndex:1]];
[arName release]; ...
Hi,
It started quite normally. I'm writing complex calculation application for iPhone. I decided to use float primitive for representing numbers. So, time came to start rounding and formatting output, but first of all rounding. I want to round numbers to different number of decimal places. FOund out there is no useful C function. OK, so...
I want to draw line on iPad using user points. How can I do that? Kindly reply if you know
...
Am using UIScrollview, when i am trying to capture touch event in UIscrollview is not responding. how should i achieve it? i am using UILable for showing the text.
Thanks
Sri
...
So I have several viewControllers, each creates images using "imageWithContentsOfFile" in order to conserve memory and then sets objects to nil and releases them in the dealloc method. There are no memory leaks. The problem is memory still builds up when switching views. So for example I'll be in view1 and it'll be using 8MB of memory an...
How to convert the Address into Latitude and Longitude in Objective C?
I want to use Google Maps over there i iPhone.
...
When I run the following code, it slowly eats up my memory and even starts using swap:
long long length = 1024ull * 1024ull * 1024ull * 2ull; // 2 GB
db = [NSMutableData dataWithLength:length];
char *array = [db mutableBytes];
for(long long i = 0; i < length - 1; i++) {
array[i] = i % 256;
}
If I run it without the for c...
How do I change the text of a label but keep the formatting as in interface builder?
//This line changes the formatting and makes the text very small
lHolidayNightCount.text = [NSString stringWithFormat:@"%f", sHolidayDuration.value];
...
Hi,
I'm a newbie and trying to display a sprite on my iPhone screen using OpenGL ES.
I know its far simpler and easier to do it with cocos2d but now I'm trying to code directly on OpenGL.
Is there any simple yet efficient way to load and display sprites in OpenGL ES. What I've found until now is much much complex. :(
...