Releasing object on different pointer
For example: MyClass *obj1 = [[MyClass alloc] init]; MyClass *obj2 = [obj1 retain]; and release it with [obj2 release]; [obj2 release]; Is it legal to do this? Will the object will be released properly? ...
For example: MyClass *obj1 = [[MyClass alloc] init]; MyClass *obj2 = [obj1 retain]; and release it with [obj2 release]; [obj2 release]; Is it legal to do this? Will the object will be released properly? ...
Hi guys, can I get the list of messages that one object can response in runtime? (in Cocoa). ...
I have a News Webserver where registered user can get RSS News. I want to build an iOS application use to get News from my webserver but i don't know how to manage acc in iOS application. How can i save logined user on iDevice ( store on .plis file, Core Data ....???, store real usr/pass or store encode user/pass), how can i verify store...
Hi, I'm doing an app which needs to store large data. Just like find out what is best way to do it. Where should i store it? in document folder? or in caches folder? or there a better way of storing large data? Thanks in advance. ...
Update 2: Apple responded to my bug report with "We believe this issue has been addressed in iOS 4.2 b1 (8C5091e). Please let us know whether or not you continue to experience this issue with the newly released software by updating this bug report." I guess this acknowledges that the issue is in their code, not mine. I'll update with res...
I have an app running on the iPhone that I would like to convert into a runnable application on Mac OS X. It uses a single UIViewController, which I have heard needs to be changed into an NSViewController. Basically what I am wondering is what needs to be changed about an iPhone application to make it work like a Mac application instea...
You guys get what I mean. I have no idea how to do this. There are no tutorials anywhere and so far I've spent about 4 hours on this to no avail. Can anyone point me to anything useful or give me a quick run down on how I would achieve this? Cheers. ...
From the code below, I am having a problem with Core Motion that I could not get a reliable yaw data. To reproduce the problem on iPhone 4, you can put the phone on a table, run the code and rotate the phone about the vertical axis between 2 points. On my phone, the yaw value of the points tends to move away from the initial values. For ...
i have an array like [chapter,indent,left,indent,nonindent,chapter,chapter,indent,indent,left]; i need to find indexes of duplicates and also non duplicate elements . how to do this...........give some sample code or logic...... thanks in advance iam using objective c..... NSArray *myWords = [string componentsSeparatedByString:@...
Hi Guys, Thanks to all for responding to the questions which I Posted. I got one problem that is, While capturing the video in the iPhone, I don't know how to store the time period (duration) that I captured video with iPhone. Can any one solve my problem. I am using the following code for capturing. -(void) RecordVideoWithCamera { ...
Hi! I would like to know if it's possible to compile the same Xcode project for both iPhone and iPad, automatically changing the xib file according to the platform. The project will contain both xib files. If this is possible, how can be done? Thanks ...
I'm having a plist file which has some values with the "&" sing for example M&I, when i save the file to document folder and load it from their,i'm getting empty dictatiory, any idea to how to fix this issue. ...
Hi guys, I need a help to get the time duration of video captured with UIImagePickerViewController.Can any one help me to get rid of this. Hope I will get quick response from you guys. Thanks in advance, Monish. ...
Hello, I've started up with developing Java. However, These days I've started iPhone project and gave me lazy writing code;auto code generate functionality in xCode. Are there any non-pay free edition add-on exist that does similar to xCode? I mean, I do know Eclipse already has partial auto method look up when you put '.' (dot) token ...
Is there any solution in to make comments before each method in Obj C code similar to from from C#? I'd like to provide an information about my custom methods by Alt + Double mouse click when browsing code. ...
What kinds of cryptographic algorithm i can use to sends/receives data to/from webserver in iOS?(My webserver don't use https) ...
Hi All, I am trying to make a details page similar to the address book app on the iphone, but am having trouble, organising the data and also the view. I am currently going down this route, but there has to be an easier way: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { i...
I'm using the SFHFKeychainUtils which is a wrapper for Apple's Keychain. To query a password I need a username. How can I access username application wide? Use a singleton? Other solutions? ...
Hi! I have an iPhone application which gets a json string from a server and parses it. It contains some data and, eg. an array of comments. But I've noticed that the order of the json array is not preserved when I parse it like this: // parse response as json SBJSON *jsonParser = [SBJSON new]; NSDictionary *jsonData = [jsonParser ob...
Hi, I have a need to convert NSString to double. If this string is in essence integer, then result is OK. If string is decimal, perhaps also with group separators then results are false. Any king of separator (whether "." or ",") whis is first in the string is always used as decimal separator. I have tried to do something with NSScanne...