iphone

Which "Top-Level Objects" is Apple talking about in the Memory Management Programming Guide?

In the Memory Management Programming Guide for Cocoa Apple talks about Top-Level Objects. They say, that I need an Outlet for each of them. If there are any top-level objects you do not store in outlets, however, you must retain either the array returned by the loadNibNamed:owner:options: method or the objects inside the arra...

Creating ADTS frame on iPhone.... problem

Hello all, I am getting raw aac data from web stream and try to put it in ADTS frame in order to play it on iPhone. It works for 10 seconds then sound stops and restart but seems accelerated or mixed with others audio data. Quicktime and others audio app are unable to open my file. It seems my ADTS header is wrong but I am unable to...

how to hide the keyboard when empty area is touched on iphone

normally when you touch the text input area, the keyboard pops up and when you touch the empty area of screen, the keyboard disappeared. How to make that happen? just like what we experienced on iphone safari... Thank you ...

How quickly can 2 iphones exchange information regarding tilt/position?

I was wondering what amount of time is required to convey information regarding the tilt and position (not gps) of one particular iphone to another. Could 2 iphones send and receive this information simultaneously? What about 3 iphones? I'm interested in an application that is able to simultaneously send and receive and make conditional ...

Audio envelopes differences... ADTS, CAF, ...

Hello, I would like to know differences between these different audio envelopes. and when to use one instead another one. Sorry if my question seems stupid... Thanks for your help. Thierry ...

Is there a reason I can't initialize a CALayer outside a UIView class?

I have been trying to us CALayers as "sprites" in an iPhone application I'm working on. From what I have been reading, that seems like the correct thing to do here. When I setup the layer inside a UIView class I am able to get the layer to show up on the screen: NSLog(@"GameView initWithCoder"); NSString* imagePath = [[NSBundle mai...

AudioQueue buffer size for streaming aac audio

Hello, I am playing MP3 audio form a network stream and sometimes gaps are present when using WIFI connection. I decrease the buffer size, but I am wondering what is the best method for calculating buffer size. My MP3 stream is 64 Kbits. I am using 3 buffers, for 64 *1024 each. PacketDescriptions is 512 Thanks a lot Thierry ...

What options are available to accept credit card payments through an iPhone?

What are the options to accept a credit card payment from an iPhone application? This will be a stand alone application, not an iPhone specific web site. Can I integrate with a payment gateway like Authorize.net? What about paypal or Google checkout? I know on some web sites, it will take you to a paypal site for the payment authoriz...

How many developers can use one iPhone developer key?

I'm looking to create an iPhone application and will enroll in the iPhone Developer Program. However, it isn't clear to me how many developers I can have if I enroll in the Standard Program. It says the Enterprise Program is for companies with more than 500 developers, so if I work on a team with 2-3 other developers, will the Standard...

Packaging a Bundle with a static library

I have a static library that includes some xibs. These will basically be the same across projects. I'd like to include the xibs as part of the library. I can include their veiwcontrollers, reference these controllers in the calling project but then there isn't a xib to load. When I right click the xib in the library project, it can't...

How do I update the UI in the middle of this thread?

Below is a block of code that runs in a separate thread from my app's main thread. How do I get the UI to update after each button gets its thumbnail? Right now it doesn't update until the whole method finishes. The buttons are already added to a UIScrollView. (LotsGridButton is just a UIButton with some extra properties.) - (void)fetc...

CATransaction Not Animating

I've created a new View-based Application in XCode. In the ViewController, the only code that I've modified looks like this: - (void)viewDidLoad { [super viewDidLoad]; UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; newView.backgroundColor = [UIColor redColor]; [self.view addSubview:newView]; [CATransact...

How to sort an NSMutableArray with custom objects in it?

What I want to do seems pretty simple, but I can't find any answers on the web. I have an NSMutableArray of objects, let's say they are 'Person' objects. I want to sort the NSMutable array by Person.birthDate which is an NSDate. I think it has something to do with this method: NSArray *sortedArray = [drinkDetails sortedArrayUsingSelect...

How do I draw a shadow under a UIView?

I'm trying to draw a shadow under the bottom edge of a UIView in Cocoa Touch. I understand that I should use CGContextSetShadow() to draw the shadow, but the Quartz 2D programming guide is a little vague: Save the graphics state. Call the function CGContextSetShadow, passing the appropriate values. Perform all the drawing to which you ...

Safari Cache size for iPhone 3.0

Various sites on the internet claims that Safari cache on iPhone 2.2 is 25k and 19 objects. Does anyone know what is the cache size for Safari/webview on iPhone 3.0. ...

Why is there no need for releasing an Outlet that's set up with "assign"?

I've been reading that if I have something like this: @property (nonatomic, assign) UIView *anView; Then I don't have to care about memory management. I don't have to do [anView release] in the -dealloc method. Why? "assign" just tells the compiler: "Hey man, this property does not retain whatever anyone assigns to it". And then you...

PVRTC textures on iPhone Simulator

Hi everyone. Is there any way to make PVRTC textures work on the iPhone Simulator? ...

Why should I write [anView release], anView = nil; rather than [anView release]; ?

Somewhere I was reading that - regarding low memory warnings and giving up an non-visible view with all it's subviews (= a whole nib, I think), you should do that: -(void)dealloc { [anView release], anView = nil; [someImageView release], someImageView = nil; [super dealloc]; } rather than -(void)dealloc { [anView rel...

iPhone + Sharepoint

Hey, is there a way to connect the iPhone with Sharepoint? I wonder, if it is possible to implement the HTTP or WEBDAV protocol of Sharepoint in Cocoa/Objective-C. Regards ...

Is "assign" the default setup of the @property compiler directive?

If I define an property and just do: @property(nonatomic) UIButton* button; then I think that it's an "assign" property. Is that correct? ...