xcode

iPhone SDK:How do you play video inside a view? Rather than fullscreen.

Hi, I am trying to play video inside a UIView, so my first step was to add a class for that view and start playing a movie in it using this code: - (IBAction)movie:(id)sender{ NSBundle *bundle = [NSBundle mainBundle]; NSString *moviePath = [bundle pathForResource:@"Movie" ofType:@"m4v"]; NSURL *movieURL = [[NSURL fileURLWi...

Inheritance Issues in Objective C

I created an "SDMutableGrid" class so that I could use a grid. It's just a child of NSMutableArray that contains a number for arrays equal to the number of rows in the grid. Currently, the program quits before it really starts and it appears that it is because the methods defined for NSMutableArray somehow do not apply to SDMutableGrid...

Strange XCode/Objective-C Error: failed integrity check

Hi Everyone, I'm getting some really strange errors in XCode. Whenever I run my program, I get "malloc: test_node_integrity: FreeListNode 0x1052af0 { _prev = 0xffffffff, _next = 0xffffffff, _size = 0 } failed integrity check." I've searched all over Google, but haven't found anyone else with this error message. The stack trace has metho...

Problem provisioning iPhone with 3.0.1 after it worked before

After I installed iPhone OS 3.0.1 on my iPhone I followed the instructions on Apple's website (see this question), created the symbolic links, and everything worked fine. That is, I could test my application on the iPhone. Now it stopped working. I verified that the symbolic link is still there. I also tried deleting and recreating it a...

How do I get an NSArray of filenames of all files in a given directory in my app?

What I want to do seems simple enough: Get an array of filenames in a given "directory" on my app. But the more I play around with NSFileManager and NSBundle I find myself getting more lost...I just want to get the filenames of the files organized in a specific directory in my iPhone Xcode project...For example: The directory in question...

Anyone successfully build, submit & have Apple accept an app using Snow Leopard beta & XCode 3.2...yet?

Title says it all... ...

how to copy - paste x code group copy iPhone?

In iPhone Development, generally we use xCode. Now, we manage different groups within our project. my Question is how do you copy the entire group (with including files in it) and paste within same project or other project? ...

How do I make an NSView move to the front of all NSViews

Hi! How do I make an NSView window move up to the front. My app has 3 windows and when I press a button in one of them I want another to move on top of this one. ...

Phone App Only Dials 7 digit phone numbers, Email function not working

I have developed an iPhone application that integrates a list of shopping registries,a To Do list and a Contact sub-app. The 'Contact' app has a GUI similar to the Info page on the iPhone's Contact app with ability to select a contact in the middle, and three buttons; Call, Sms, and Email at the bottom. When the user touches the 'Select...

Tips for transitioning from Emacs to Xcode

I'm a developer making the transition from Linux/Emacs to OSX/Xcode. Does anyone have any tips or recommendations for smoothing this transition with regard to text editing? Specifically: What Emacs habits caused the most heartburn upon switching, i.e. what errors did you make repeatedly that were a result of an Emacs background? Was...

How to open a new view when touching on a uiview?

i have a scrollview with uiview added as subview..now how do i open a new view when i touch on the view???? i want a new view to appear...before this i have buttons on my view...so button have the method "addtarget perform selector"...from that i am loading a new view here is an image of my view ...

Shark & MallocDebug for iPhone Applications

I'm trying to optimize an iPhone game that I am developing which uses the Cocos2D-iphone framework. I want to use Shark to measure performance but "Run->Start with Performance Tool->Shark" is disabled in XCode (Instruments Leaks works fine). I've configured the build to "Generate Profiling Code", tried building for both the device and t...

How can I run com.apple.tools.info-plist-utility ?

I am using XCode to build an iPhone application, where I would like to externally process the info plist file in the same manner as the XCode build step shown below does Processing /Users/kte/Projects/build/Debug-iphonesimulator/TestAppGen.app/Info.plist TestAppGen-Info.plist mkdir /Users/kte/Projects/build/Debug-iphonesimulator/TestApp...

IB complains that a new window has contents that go off screen

Interface Builder gives me a warning about the set up of my .xib file. It says, in a dialog called "MainMenu.xib Info", Object: Window ID: 21 Type: Illegal Configuration Issue: This window's content rectangle does not lie entirely on the screen with the menu bar and may not be completely visible for all screen resolutions and configur...

Is there a way to render IPhone mic input directly into memory without working with files?

I see that the IPhone core audio does not include audioDevice objects to render audio input directly into RAM. I hear people talking about using files to do this(like speak here) but I am thinking there must be a way to do this otherwise. Your thoughts would be appreciated. ...

Do I have to re-compile everytime I add a new device for ad-hoc installation?

I have created an ad-hoc provision profile for my iPhone application. Everytime I add a new device, do I need to re-compile my application so that it can be distributed? This is VERY tedious. ...

Does anyone know where I can find a random text generator tutorial for xcode?

I am trying to make an app that uses a random text generator but I don't know how to do it so i was looking for a tutorial that would help me with it but I haven't found any yet.. Has anyone seen any of them? ...

How to edit an default Xcode template?

When I create an NSObject subclass, I always get an empty implementation. There are some things I always put in my code like pragma marks and -dealloc methods. I prefer to just delete stuff that I don't need over writing it with typos from scratch every time I need it. I need -dealloc and -init almost always, but they don't ship with the...

Bug in XCode debugger?

I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing. These symbols are in the external library. The addresses are fine if I am tracing throug...

Corrupted class file created with XCode

All of sudden when I create a new class file in XCode the content of the file seems corrupted. The funny ting is that if I copy the text into a text doc. it is displayed ok. Has anybody seen this strange thing and knows how it can be fixed? Previous class file are ok. thanks in advance ldj ...