I am looking to make a Application and each row of the table view will have a column with a check box. What i am looking to do is... make the row that the checkbox is on go slightly see through if the check box on that row is checked (this should be implemented on every row of the table as every row has a checkbox) .
...
I've started to read all available apple docs on this topic. A fast overview gave me a number of about 8.000 (eight thousand) DIN A4 PDF pages. About 10% of the content is almost equal for my feeling. After reading for 2 weeks now, I figured out that I would forget fast what I have been reading a week ago. Unless I start to do something ...
Hi, I have the following code:
[ [NSDate date] descriptionWithLocale: @"yyyy-MM-dd" ]
I want it to return me date in the following format: "2009-04-23"
But it returns me: Thursday, April 23, 2009 11:27:03 PM GMT+03:00
What am I doing wrong?
Thank you in advance.
...
To phrase my question as simply as possible, is there a way to create a core animation sequence to repeat over and over until a stop?
Specifically, I'm making a custom class that I want to have a -start and -stop method that will cause it to pulsate. Writing the animation code for the pulse is not the problem, rather, how to make it rep...
I'm writing my first OS X Objective-C framework, but I do not know how to test it. How can I execute methods and classes in framework for testing purposes?
...
I am sending a post using NSURLRequest.
NSURL *url = [NSURL URLWithString:someUrlString];
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
NSString *msgLength = [NSString stringWithFormat:@"%d", [parameterString length]];
[theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
[theRequest setHT...
In my application I have some controls like NSButton and NSTextfield I want to turn invisible.
I know I can do it n the Interface Builder but I need to do it in the code.
I still haven't found the right message I need to send to the controls.
...
Back in the day of C/C++, the part of the language that really hung me up was pointers. I understand them now, of course.
Now, Interface Builder Proxy Objects or more importantly, how to use Interface Builder and what to put in the .XIB window (window that contains the File's Owner, First Responder, etc...) for a given XIB.
I've gone t...
I have created a simple NSWindow with an NSTextField and an NSButton in Interface Builder on Leopard. I set the window background color in my program. Everything looks fine when I run the program in Leopard. But when I run it in Tiger, the background color of the window is not set. It has a default Tiger look with horizontal stripes.
...
Hi!
I'm developing a Cocoa (Touch) app and there's certain data (like own device information and a list of locations) that I have to persist between different views and controllers.
I thought of storing it as instance variables in my App Delegate, but addressing the delegate is quite cumbersome (no joy typing [[[UIApplication sharedAp...
In the wikipedia article on Cocoa it says:
There are also open source implementations of major parts of the Cocoa framework that allows cross-platform (including Microsoft Windows) Cocoa application development, such as GNUstep, Cappuccino, and Cocotron.
Yet when I looked into whether Mac application Tweetie was available for windo...
I'm trying to add a value to the header for a URL request.
Something like this works just fine:
[urlRequest addValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"];
But this doesn't even show up in the header:
NSString *authString = [[NSString alloc] initWithString:
[defaults objectForKey:@"auth"]];
[urlRe...
Now I want to export a image in my Project to a folder , I think this is with the NSBundle and NSFileManager problem , but I don't know how to do with it ? Thank very much!
...
I want to pass parameter in NSURL
i.e. I have
NSURL *url = [NSURL URLWithString:@"http://demo.digi-corp.com:82/Nilesh/betBuddy/api/getEventsXML.php?sp_ID=2"]; where sp_ID can be 1,2,3,4 etc.
how can i do it?? plz help me out?
...
What I really like in C# are generic lists. A list that can contain only one type of objects.
Is there something like a generic list in Cocoa/Objective-C? As far I only know NSArray who will take a pointer to any object.
...
In a project that I am currently working on I have an transparent NSWindow overlayed on a QTMovieView. At certain points I slide a custom view into this child window with animation so that it is displayed over the movie for a short period of time. The only odd behavior is that the animation is smooth on a Mac Book Pro but on a Mac Book(S...
I'm recording from a webcam. The camera looks great in PhotoBooth. However, when I preview it in my program with a QTCaptureView, or record it to a file, it is very, very slow. The reason is that QuickTime is giving me the maximum possible resolution of 1600x1200. How can I force a more reasonable size for both my QTCaptureView and my re...
In many Books and on many Sites I see -drain. Well, for an Autorelease Pool that sounds cool. But does it do anything other than an release? I would guess -drain just makes the Pool to -release all it's objects, without releasing the Pool itself. Just a guess.
...
I need to write a simple ping method in Cocoa/Objective-C. It also needs to work on the iPhone.
I found an example that uses icmp, will this work on the iPhone?
I'm leaning towards a solution using NSNetServices, is this a good idea?
The method only needs to ping a few times and return the average and -1 if the host is down or unreach...
I'm looking at some open source projects and I'm seeing the following:
NSLog(@"%s w=%f, h=%f", #size, size.width, size.height)
What exactly is the meaning of '#' right before the size symbol? Is that some kind of prefix for C strings?
...