I haven't found answer in any of the questions asked.
I am passing an Integer Array to a function.Now I want to traverse through the array.But as things worked in C,C++ by simple using arrayname.length which gave the number of elements in array. What is the way to find that?
[NSArrayObject length] works for NSArray type but I want it for...
Hi I am trying to develop a daemon using objective-C/xcode.
I am new to mac world and can I get an idea of what project template to choose in xcode and how to do it.
Can I get a simple and basic daemon sample source code ?
...
Hi all,
I need to know how to design new (different) user interface for iphone with photohsop or like that tools. I have already checked photshop design mockups for iphone over the internet, but i'm sure, i don't need that, these example psd files shows original iphone design elements.
I'm just looking to how to design new user inter...
I have a very simple scenario:
My iPhone application contains a UIViewController implementation which displays a list of items. In its navigation bar there is a button for adding items to that list. When this button is clicked, a new UIViewController is instantiated and presented on the screen using:
[self presentModalViewController:co...
I'm running leaks through Instruments on my iPhone app and I'm seeing a lot of leaks that don't appear to be coming from my code.
For example:
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
delegate:operation];
operation.urlConnection = conn...
I have an NSBorderlessWindow subclass of NSWindow with a transparent and non-opaque background (so it's non-rectangular in appearance). I've added my own buttons to function as the close and minimize buttons when I click them, but for some reason the window will not respond to CMD-W or CMD-M like a normal one does. I have my NSWindow sub...
I'm having a problem here:
I have a C function:
int my_connect(int sockfd, const struct sockaddr *serv_addr,
socklen_t addrlen) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
alertViewDelegate = [FirewallRest alloc];
[alertViewDelegate retain];
//ALog(@"1");
int error;
//ALog(@"2");
char hostname[NI_MAXHOST...
Is it possible to handle touch events in the key UIWindow in the app Delegate or anywhere else?
Any help would be appreciated please.
...
There are plenty of objects in each iPhone app witch will live forever till app dies. They are: application delegate, window, main view controller, may be navigation or tab controller, all the objects within them. Why on Earth should I release them just before quit spending precious CPU cycles? As far as I understand, apps process will b...
I'm updating some code in a library because i've found out my original code assumed 32bit pointers. I have my own thinkings on how to fix it, but for thoroughness, I want to ask what are some techniques you would use to make this code work for both 32bit and 64bit without a macro?
char *argList = (char *)malloc(sizeof(id *) * arguments...
What is the difference between:
#import "foo.h"
and:
#import <foo.h>
...
I am checking Day objects in my schedule Dictionary and want to know what to do about the Day pointer when I'm done. Build and Analyze doesn't complain about it, but it just sits there taunting me. I feel like it's just sitting there when the function finishes and maybe even a new one gets created each time through the loop. Also, when r...
I've stumbled upon a problem in the application I'm developing using cocoa.
I need to do some processing, and I'm doing it on a separate thread. I'm doing this so I can display the progress using a NSProgressIndicator and not hang the main thread. (The user can cancel the execution if he/she wants).
It's almost working perfectly, But th...
For something like this app http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=323242790&mt=8, what sort of game framework is needed? It's all 2D and I've read how popular Cocos is. The problem is I'm not a game programmer and there aren't any good Cocos tutorials out there. Would Cocos be able to create a game like...
How can i create same action like have UIButton or other UI controllers?
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self action:@selector(buttonClicked) forControlEvents:UIControlEventTouchUpInside];
[view addSubview:button];
...
(void)buttonClicked
{
// Handler
}
i would like to have cl...
I wat to do something like this:
if (viewController.mapView) [viewController.mapView someMethod];
However, if mapView is not a class variable, this crashes. How do I check if mapView exists?
...
I am wondering how I could delete an object depending on it's title for the CoreData 'name' property I have.
To Add an Object I use this code:
NSManagedObjectContext *moc = [self managedObjectContext];
JGManagedObject *theParent =
[NSEntityDescription insertNewObjectForEntityForName:@"projects"
in...
Excluding Cocoa (and its NSThread), what multithreading libraries would you recommend?
The application's engine must run on multiple platforms (Windows, Linux, MacOS, iPhone), and be multithreaded. Abstracting the library to compile against platform-specific MT libraries is possible, but incurs an extra layer of overhead and complexity...
i want to fire a timer as user slides the slider when the touch ends.
is there a way to handle touch events of uislider?
...
Hi All,
I am currently working on a game, which has a long story at its initial.
It just telling the user that what happened before the war that is the causes of war.
So, I wish to show all these things like a movie.
I used the MPMoviePlayerController for this, now I am facing the problem while hiding the controls. I don't want to s...