objective-c properties question
I'm new to objective-c and have been wondering what's the point of creating properties? I can just create a variable in the header? Why create a variable and a property with the same name? ...
I'm new to objective-c and have been wondering what's the point of creating properties? I can just create a variable in the header? Why create a variable and a property with the same name? ...
I am still going through a beginners textbook but nowhere does it explain how to create and reference a 'dll'. I assume its called something different but if I wanted to for example create a dll to store all my LocaleHelper code, how would I go about creating it and then referencing it. I see in xcode you can't add more than one projec...
I have searched for the ans in stackoverflow and google too, but didnt get what i need. What I am looking for: is there any way to set default values for class properties of a class? Like what we can do in Java, in the constructor of the class eg.- MyClass(int a, String str){//constructor this.a = a; this.str = str; // i am lok...
Hi all, I am newbie to Mac Application Development.I am planning for an application having the features like de-fragmenting the mac ,parental controls, data backup etc... I do have some exposure to Objective C (Developed a small application for iphone) So please anyone could advice me regarding where to start,where to find best re...
Hi All, I want to display a series of text in an animated way one after the other i.e. i want something as displayed in the follwing link.. http://www.tcs.com/homepage/Pages/default.aspx In the above link a series of text are displayed in animated way and if a user clicks on text a video is opened.i want exactly same feature in my app...
I have an NSString which has been declared as property and being allocated and initialised in view did load as below: NSString *textWithKey; @property(nonatomic,retain)NSString *textWithKey; in .m i have @synthesize textWithKey; and in viewDidLoad i have self.textWithKey=[[NSString alloc]init]; self.textWithKey=@""; Now som...
I have 2 arrays, 1 in the viewDidLoad method and 1 in the add method(adds an object to favorites) NSUserDefaults *myDefault = [NSUserDefaults standardUserDefaults]; NSArray *prefs = [myDefault arrayForKey:@"addedPrefs"]; userAdded = [[NSMutableArray alloc] initWithArray:prefs]; Instruments is showing leaks from these prefs NS...
I have seen apps that have table views that have rows that contain 2 or 3 cells. Something like the following: | 3 cells in one row | /-------\ /-------\ /-------\ |do this| | do | |do smth| <--- table view row that contains 3 cells | | | that | | else | \-------/ \-------/ \-------/ When you click on a cell th...
I'm working with a UITableView. I'm using a web service to get the array contents. Can anyone get me any samples to do these kind of application. I don't know how to use the web service and to list it out in the table view. ...
Hi All, In my app I want to mimic the dock as displayed in Mac.Instead of using tab bar I want to use a dock kind of view in my app so that when a user taps on a dock item a new view is displayed.Is there any code or help availble for the same? ...
Hi, In my application delegate I have an NSString which can be modified by a class. What I want to do is to have another class observe this NSString and to react whenever this NSString is changed. Does anybody know how I can do this? Best regards, Paul Peelen ...
Now I think I know about the differences between 3.X and 4 with regards the MPMoviePlaybackController and the need to set the view and have it fully working in a child view controller. But despite the following code seeming correct (to me) I still just get a blank screen for the duration of the movie. I know it plays successfully as movi...
Are there any Objective-C libraries available for accessing SVN repositories. It is a very difficult thing to Google for due to the high correlation on the words involved. I would like to use one in an OSX 10.6 application. ...
Hi. I try to call a method with a float parameter but the value the method gets is not what I sent. Here is the code for the call (the actual call is the last part of the last line, [child setFaceDirection: direcao]; ): direcao = dirRadianos * 180 / M_PI; // direcao = The value I send NSLog(@"Value Sent: %f", direcao); // Log what ...
Hello, I am getting close to finishing the release of my application and are trying to use Instruments to fix any memory leaks. How come that I can spot one memory leak when using Instruments and my device but not when I am using the iPhone simulator? I understand that this is a high-level question, but I don't think posting any code ...
Hello Everyone, as I have read in the ASI Documentation, its writen: "Data is posted in 'application/x-www-form-urlencoded' format, or 'multipart/form-data' format when uploading binary data or files." That's exactly my Problem. I am sending just a String to a server, but the server just accepts 'multipart/form-data' and as I just sen...
hello, does anybody know if it's possible to gather application usage information from your iphone...like for example, application with id: xxxx opend at xxxx hours and closed at xxxx hours... thanks! ...
I have implemented the ability to make a call from clicking on a row of descriptive tableview of my hotel; I used the URL scheme by writing the following code in method "didSelectRowAtIndexPath ": NSString *phoneNumber=element.phone; [NSString *phoneNumberScheme = [NSString stringWithFormat:@"tel:%...
Hi all, I know this keyboard retract has been asked a lot but I have a strange issue related to this. My view has 3 UITextFields all connected fine in the Interface Builder. I tap on any TextField and the keyboard appears. When I'm done typing, I tap 'Done' and the keyboard retracts. This is all nice but sometimes, I mean SOMETIMES, th...
Hello all, I need some help with GUI Iphone development I am currently develop iphone application and finish with the logic side of the app. now i am trying to handle the GUI side but i cant understand few things. i need to represent list of shops that each shop will display on row and for each row i need button that can be ON or OFF (v...