Is it possible to smoothly animate a changed width property of CGContextFillRect over say 5 seconds?
CGContextFillRect(context, CGRectMake(x, y, width, height));
I'm trying to write a method for an iphone app that basically takes a time value and animates the change of CGContextFillRect width from the initial value to the final value ...
In Cocoa, how can I determine which screen holds the menubar when the computer has multiple screens?
Here's what I have so far:
NSArray * screens = [NSScreen screens];
NSScreen * mainScreen = [screens objectAtIndex:0];
if ([screens count] > 1)
{
for (NSScreen * screen in screens)
{
if (/* screen == the screen that holds...
How to create an NSDate Object with Date: Today. Hour: 5, Min: 0, Sec: 0
i.e. Date Object will have 07/02/2010 5:00:00
...
Hi folks!
I have an instance of NSData that I stored from a previous run of my application. I want to set an NSTextView's text using this data. It is RTF and I can't figure out how to do this. Any ideas or suggestions? It needs to be done with code and not Interface Builder.
Thanks
...
I have created a method and connected it with value changed event of UIDatePicker, but as soon as I changed the value the app. crashes.
If I remove the connection of UIDatePicker's value changed to my method in Interface builder, then app does not crash.
Can I not connect value change to my own method for UIDatePicker?
...
Hi all,
I am using the delegate method for auto rotation in iphone application.
-(BOOL)shouldAutorotateToInterfaceOrientation:UIInterfaceOrientation)interfaceOrientation{
if(interfaceOrientation == UIInterfaceOrientationPortrait ){
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimat...
Hi,
I am working on this core data app, and im not exactly shure how to do what i want.
Right now my first view displays a list of playlists. I can add a playlist to the list. The plus sign pops up addViewController. From here i can add a name to the playlist, now comes the tricky part for me..
I want to be able to select songs from a...
I want to create an alarm clock application. User will select music file from iPod Library.
I can play that file immediately but exiting and launching app again how can i remember what was the song last time selected?
I know how to read write to xml files but what i will save and will retrieve? Can i save index of the music item? later...
How can i Sync text with the audio i have a given text and audio i just want a hint how can i sync them
...
Hi guys,
I am getting the memory leak in my objects setters can any one help me to resolve this??
Code:
- (void)setEstimateTax2Type:(NSString *)aEstimateTax2Type
{
if ((!estimateTax2Type && !aEstimateTax2Type) || (estimateTax2Type && aEstimateTax2Type && [estimateTax2Type isEqualToString:aEstimateTax2Type])) return;
[estimateTax2T...
Hi Guys,
I have one doubt
NSMutableArray *array=[[NSMutableArray alloc]init];
here some memory is allocated then how can we release this memory, whether using removeAllObjects method or [array release];
Are both have same functionality?
Thank You,
Madan Mohan.
...
I am running an intro movie in a MPMoviePlayerController and i've got a problem with the allocated memory not being released.
When the movie finishes, Instruments shows the memory being released.
However when i skip the movie by tapping on it the memory is not released.
Here are the important parts of my code:
- (void)applicationDidFini...
I have creating an address book application . My AddressController.h class is ---
@interface AddressController : NSObject {
IBOutlet id nameField;
IBOutlet id addressField;
IBOutlet id tableView;
NSMutableArray *records;
}
- (IBAction)addRecord:(id)sender;
- (IBAction)deleteRecord:(id)sender;
- (IBAction)insertRecord:(id)sender;...
hi all,
im writing a news app, and im just planning it out in my head and need some help, before i start coding.
my app is a tab bar controller that is loading and displaying info from an xml feed. i am going to start the download of the xml within the app delegate in the background, so the app does not get closed down by the os, howev...
I'm trying to put buttons that have operators on them, like / * +, etc. I want to store the operator in such a way that I can use it in an expression, like 1 var 2 = 8
I would like to avoid having to use a different method for each operator, so an operator var would be my best option, I think. Objective-C for iPhone
...
Hi
I'm getting better and better with doing things for the iPhone in xcode, but here I have ran into a dead end.
I'm trying to build an app with two views: the main one and one for settings. I want to be able to switch between the two of them. Since I need every pixel in the main view I have built a switchView class that simply switch ...
Hi all ,
I just want in my application a ticker,
i have no idea to implement ticker please tell me.
Thanks
...
I have a bunch of variables named index1, index2, ..., indexn. I want to calculate i = array[index1] + array[index2] + ... + array[indexn]. I heard that I can do that in a loop, getting the current variable name from the loop index. How can I do that?
...
In my app app i have to parsing a xml file downloaded from internet. How to download this xml and save in documents on iphone ? and then how can i start the parsing of XML saved in documents??
...
After a long fight with OAuthConsumer, fixing method names, etc... I got MGTwitterEngine's demo compiled, but when I run it, the application quits with this in the Debugging Console:
2010-07-02 14:15:29.896 MGTwitterEngine[2076:a0f] Connection finished C235E35F-8586-45EF-97C2-XXXXXXXXXXXXXXXXXX
2010-07-02 14:15:30.572 MGTwitterEngine[20...