objective-c

pointer being freed was not allocated

Hello i have the following error: malloc: * error for object 0x2087000: pointer being freed was not allocated * set a breakpoint in malloc_error_break to debug I have no idea what object that is. I don't know how to find it. Can anybody explain to me how (and where) to use malloc_history. I have set a breakpoint in malloc_error_break b...

Localization in Mac application

Hi , I'm trying to add localization to my Mac application, with the localized files and xib for the Danish language. When I compile it accepts Danish key entries as expected but after packaging the software it won't accept any other language besides the default "English" language. Please guide me if any one has worked with this problem....

Why aren't my objects sorting with sortedArrayUsingDescriptors?

I expected the code below to return the objects in imageSet as a sorted array. Instead, there's no difference in the ordering before and after. NSSortDescriptor *descriptor = [[NSSortDescriptor alloc] initWithKey:@"imageID" ascending:YES]; NSSet *imageSet = collection.images; for (CBImage *image in imageSet) { NSLog(@"imageID in Se...

How to make an C vector or array from an NSArray?

Is that possible? I've seen no method that would generate a plain old C vector or array. I have just NSNumber objects in my array which I need as C vector or array. ...

Downloading files and save it to a hidden folder on iPhone

Hi, can some give me a good resource for the iphone filesystem? Basically I want to know: Where can I save my downloaded files into which folders? And which are not allowed? Which of these folders are hidden? (which won't be backup extracted) These files should stay on the device. Want I'm trying to do is this: The user can download...

how a view controller know when it is dismissed or poped out of the navigation controller stack?

Hi all, My view controller needs to know when it is poped out of the navigation controller stack, so that it can retain itself, wait and release itself later with another notification. I intend to do like that when the view is sent dealloc message: - (void)dealloc { if (self.isPerformingSomeTask) { self.isPopedOut = YES; ...

Crash in OS X Core Data Utility Tutorial

I'm trying to follow Apple's Core Data utility Tutorial. It was all going nicely, until... The tutorial uses a custom sub-class of NSManagedObject, called 'Run'. Run.h looks like this: #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @interface Run : NSManagedObject { NSInteger processID; } @property (retain) NSDat...

How to set the back groung color to the UIActionSheet in iPhone?

Hi Guys, I need to change the back ground colour of the action sheet, UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:nil ...

UIScrollView on scroll update method

Hi is there a method / possibility to run a function when the scrollview is scrolling? i found scroll start and scroll end solutions but nothing like a onIsScrolling ... is there a built in solution? or whats the best workaround (nstimer)? thanks Alex ...

.Net HttpWebRequest/Response Cocoa Equivelant

I am currently trying to port a .Net app to Objective C and Cocoa. I know the basics and have had little trouble with most things. But I'm having trouble retrieving data from the Web. In C# I would use POST and GET to retrieve information from a server as such byte[] buffer = Encoding.ASCII.GetBytes("someData"); HttpWebRequest request...

how can i hide the keypad from iphone simulator after its use ?

how can i hide the keypad from iphone simulator after its use ? in my app Ist textfield is for name , another one is for password and one button i want to hide the keypad whenever i clicked on button. ...

UIPickerView scroll issue

when the user scroll UIPickerView it is auto select the row ,, i want to select and mark when the use tap only, any solution for that ? ...

if statement on UIButton within didSelectRowAtIndexPath

hi guys, i have a UITableView , within each cell i have 2 custom buttons, what i want to do is withing the didSelectRowAtIndexPath method i want to do an if statement on which button was touched so i would effectively be splitting a cell in 2 but i have no idea how i could wright the if statements. any help would be greatly welcomed ...

UIView animation doesn't work first time

Hello everybody, I have a seachButton in the navigation bar which upon hitting calls following method: - (IBAction)search:(id)sender { if (nil == searchViewController) searchViewController = [[SearchViewController alloc] initWithNibName:@"SearchViewController" bundle:nil]; searchViewController.view.backgroundColor = [UIColor clearC...

Help for AES-128 Bit Algorithm ?? i want to encrypt it

Can i get link for AES-128 Bit Algorithm any sample code please help ...

How to display the UIActionSheet view from above Tab Bar Controller?

Hi Guys , I need to display the action sheet above the Tab Bar controller. I mean, I would be able to see the Tab Bar controller even the action sheet view is in visible mode. So, Please suggest how to view from above the Tab Bar controller. Is it possible. secondly, How to change the back ground color of action sheet and cancel butto...

How does #import search for files in Objective-C

I can only find a little bit of information on the topic. My understand right now is that #import <my.h> // searches in the system paths #import "my.h" // searches in the same dir as the source file - is that right? I have an static library with .h files in a different location. Can I have the compiler search a new folder for .h fi...

Does anyone know a Safari style Tab Control for Mac OS X applications?

I am looking for a tab control that is different from the default NSTabControl. I am looking for a sample or existing control that replicates the newer style tab controls that are used within Safari, Firefox, Camino etc. From looking into the Safari app bundle resources it seems the tabs are created from images. I would prefer a contr...

Is there a way to dismiss an alertview automatically after some time?

I'm looking for a way, to automatically dismiss an alert view after some time or after a task is done. Is there a possibility? (or another way to show a message for some time?) ...

Using LocationManager from another class than Main

Hi, i'm new here, i'm new in iphone development, i'm new in Objective-c and i'm new in engligh speaking, so don't hate me :P I'm creating an application that will use the location manager to display the distance between the own position and the positions of a list of shops, like AroundME. Now, i give the locationManager property to my...