objective-c

can any one help me?

Possible Duplicate: How-to articles for iPhone development, Objective-C Can any one help me find an Objective-C basic tutorial? I have to learn a lot. Kindly help me for that. Thanks in advance. ...

Best Logger for cocoa

Hi guys Can anyone recommend me a good logger for cocoa, something that should be in par with log4j. I've been developing this app in cocoa & as the source code is growing I find my self craving for a logger. I've googled a bit, have found a few options but I am looking to hear from you guys & your experiences with these loggers. I l...

Lint for Objective-C?

Is there any lint tool for Objective-c? ...

Smalltalk blocks in Objective-c?

Does Objective-C support blocks "a la Smalltalk"? In Smalltalk, blocks are similar to "closures" or "lambda-expressions" or "nameless functions" found in other languages. ...

Edit Button on Navigation Controller

I have a navigation controller in my app and on its root view controller i have an Edit button as the rightBarButtonItem. I have a second table view which is pushed when a cell is tapped on the root view controller. The leftBarButtonItem becomes the Back button. I would like an Edit button as well, where can i put it that would make t...

What's the difference between void* and id?

Possible Duplicate: objective c difference between id and void * For example, an UIView animation delegate callback method has this argument: context:(void*)context Why not simply id? I always pass nil if I don't care about an context. But when I want one, I pass the object. What's the difference? Why did they prefer void* ...

iPhone, I need to reuse an NSArray which has constant values in different views, how?

I have the following array. NSArray *arrayDisplay = [[NSArray alloc] initWithObjects:@"Daily", @"Weekly", @"Monthly", nil]; I need to use it in two views, I'm concerned that I may make changes and forget to change the other in the future. So I'd like to declare it once and reuse it. How should I do this? ...

Autoimport callbacks of delegate in XCode (iOS)

Hi all, as the tilte is possible autoimport or there is an option in xcode that allow to import all callbacks of a delegate(as MKMapviewdelegate or other)? I use this option in Eclipse (Java) to import getters/setters methods to access class variables. Thanks in advance. ...

Edit Button on Navigation Controller does not enter edit mode

I have a UIToolbar with an edit bar button on it. This is defined as self.toolbarItems = [NSArray arrayWithObjects:self.editButtonItem,nil]; The edit bar item shows up, and but when i tap it, nothing happens, it does not change to Done and none of the editing controls show up. I have implemented the following methods as i would like...

how to handle iPhone popups automatically without any user interaction?

I'm working on a tool that helps to automate Browser based products. On of the use case I encountered is to handle popups either from application or from Safari. I would like to provide an API where a user can click OK when a popup prompts. Can I do it through JS or is it possible through any Apple API? And one more thing, how do I know ...

TTPickerTextField example

I've been trying all day and just can't make the the TTPickerTextField work. It displays, I set its dataSource to the example code's MockDataSource and type in a name from the mock and it doesn't work. There doesn't seem to be any documentation or any examples anywhere on the internet, something that I find surprising. So: does anyone h...

Animating CALayer in IKImageBrowserCell

Hi, I've got a custom image browser view with IKImageBrowserCell subclass where I've added a little sign graphic that I would like to animate on some occasions. It's kind of like the "i" sign on Panic's Coda Sites view (which I'm guessing is an ImageBrowserView customized.. right?). On Coda's sites view, if you hover on a project the l...

How to resize callout bubble after resetting title/subtitle

Hi all, I created an MKAnnotation name PushPin which has a title and subtitle. I want to be able to dynamically change the title at a later time. I'm close so I'd rather not have to make a whole new AnnotationView, but if I have to I guess that's ok too. My problem is that, once I change the text for the title, the window does not re...

Instagram Image Filters on iPhone

How does one go about adding image filters in an iPhone application? (similar to what Instagram and picplz have) ...

Passing text value from one view to another

I have this in my table view controller, and i want to pass the cell's text value to my UITextField on the modal view. - (void)buttonTapped:(id)sender { AddName *addName = [[AddName alloc] init]; UITableViewCell *cell = (UITableViewCell*)[sender superview]; NSLog(@"text in buttontapped: %@", cell.textLabel.text); addName...

Dividing a project into multiple Xcode project files

An iPad project I have been working on has become bloated with a huge number of files. The application is a prototype and we are considering ways to prevent this when we rewrite it. One of the members of our team suggests dividing all of the components into separate Xcode projects which will be included in a master Xcode project. Is t...

NSUserDefaults Question

If I set an NSUserDefault in one file(playerdata.m) could I access that value from another file(calculator.m)? ...

Returning an NSMutableArray from a method...do I release it prior? - iPhone SDK

I have been very confused on how to handle the releasing of an NSMutableArray when I need to return it from a method. I am not even sure if I am suppose to release it or not. I have the code: -(NSArray *)methodToCall { NSMutableArray *mutArray = [[NSMutableArray alloc] initWithCapacity:10]; //Fill the array with stuff...

Faster/Easier way to compare an NSString to a bunch of strings

Is there a better way in Objective-C to do: if ([elementName isEqual:@"one"]){ // do some stuff } else if ([elementName isEqual:@"two"]]{ // do more stuff } else if ([elementName isEqual:@"three"]]{ // do more stuff } ideally, I would like something like: //BAD CODE, NOT REAL!!! switchString(elementName){ @"one": ...

how to retrieve the file size of a video using AssetLibrary in objective c

Hi, I would like to know how to retrieve the file size of a video using AssetLibrary? Can anyone point me in the right direction? or possible some code snippet? ...