xcode

how to pinch, swirl, stretch, uiimage using coregraphics?

how do we do stretch,pinch,swirl effect on uiimage using core graphics..? something like this .this screenshot was of application named PhotoTwist ...

Problem with linking in XCode when compiling for iPhone

Hi somehow I managed to screw up my XCode project settings when compiling for the iPhone. It fails when linking saying that ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/AddressBook.framework/AddressBook, file is not of required architecture ... (same for ...

Accessing Property Values of a Protocol?

Hey guys, I have a protocol which defines a number of ObjC-2.0 properties, like so: @protocol Repeatable <NSCoding> @required @property (nonatomic, retain) Date *startDate; @property (nonatomic, retain) Date *endDate; @end I have another class that implements the protocol: @interface AbstractRepeatable : NSObject <Repeatable> And f...

Why getting differences between using XCode and xcodebuild?

Can anyone explain why I get different results when compiling the same XCode 4.x project using the GUI and xcodebuild command-line? XCode GUI Perform a clean Build "Release" target Build successfully xcodebuild Perform a clean Run "xcodebuild -configuration Release" Results in the following errors: /Developer/usr/bin/gcc-4.0 -x o...

ConnectionKit framework in xcode doesn't work with me

Hi, I've tried to make a Cocoa application that connects to ftp server. All answers do suggest using connection Kit framework but somehow Im not able to use it. As I compile the framework and add it to my xcode project and build it. Im not able to run the application anymore. I got error in left down corner saying that app exited with st...

Even with self, object still autoreleased

In regards to this posting http://stackoverflow.com/questions/1481871/why-does-self-protect-memory-space/1481882#1481882, I'm using 'self' to access aArray. Yet, I still get an invalid object in the didSelectRowAtIndexPath: method. In the root controller, I access aArray like this: MyAppDelegate *theDelegate = [[UIApplication sharedAp...

OpenGL - to use or not to use ? why - iPhone application dev

I have to develop an application "Behavior like an Tetris game". I have never used "OpenGL" for the iPhone application developement. Application is something like this Red / green / blue square boxes drop from top Red + Red + Red = Points & boxes disappears same way user has to make combination & get points Different levels are ther...

Save the contents of a variable in XCode Dubugger

Running the debugger in xcode when you set a break point you get a view a variable and can see all of the fantastically interesting values associated with it. Is there anyway to save/export this data to a file? I am of course having an issue where something is wrong but there is a ton of variables and I want to just compare one run of ...

How to add cocos 2d in application? - iphone dev

Hello! I am the "From Scratch / Beginner / new bie - Game Developer for iPhone". I would like to develop a tetris like game in iPhone. I have started with following link. http://monoclestudios.com/cocos2d%5Fwhitepaper.html I am using iPhone simulator 3.0. & xCode 3.1.3. I have followed each step correctly. However error occurs. Don...

I have to show the value of the UISlider with it I didnt find any method in UISlider to do so.

I have to show ths slider values with the movement of the slider. Is there any existing function I can use. Coz I was trying to get a method other than placing labels to show the updated value along with the slider. Is there a way to show uislider value with slider? or if any other way please reply. ...

uiimage draws vertically flipped?

I am creating a drawing application in iphone.i have subclassed uiview to show selection rectangle.here is an image for this.... but when i create a rect using touch points. and when modify uiimage it just modifies vertically flipped.tried CGContextScalCTM with CGContextTranslateCTM but nothing happens.unable to figure it out.does som...

XCode 3.2: Changing the default "Code Sense" indentation and whitespaces

I'm working with XCode 3.2 (on "Snow Leopard") which (still) has this nice "Text Macro" auto-completion feature (eg. if you type if it will expand to if (<#condition#>) { <#statements#> }). These macros are also available via "Edit->Insert Text Macro". Unfortunately, the default templates don't match my beloved indentation and whitespac...

XCode warning : Initialization makes pointer from integer without a cast (while trying to assign a value to a NSNumber)

Hi all, I'm stuck with a warning in Xcode while trying to develop a small iPhone App. I've got this piece of code in Xcode : NSNumber *randomNumber = arc4random() % [array count]; If I NSLog randomNumber, everything seems to work but Xcode keeps warning me, saying : Initialization makes pointer from integer without a cast There must...

Is the "build" directory necessary in an XCode project?

What would I be missing if I were to delete the build directory from an XCode 3.0 project every time I want to transfer the project (to cut back in size)? Even after I clean the project, there are still about 5.9MB of files of which I do not know what any of them do. I am interested if anybody has information about this. Thanks. ...

Problem running iPhone application on iPhone from Xcode (and in Instruments)

Hi I have a problem running one application on the iPhone from Xcode (or Instruments). When I try to run the app I get the error message Failed to upload XXX.app in the bottom left corner of Xcode. The strange thing is it actually uploaded the app to the iPhone but it doesn't start it (after this I can start the app by hand on the iPhon...

iPhone PDF and Microsoft Word Searching

I am developing an iPhone application and have been able to successfully allow my users to view PDF and Microsoft Word documents using the UIWebView control. The next requirement that I would like to meet is to provide the capability to perform a keyword search on an open PDF or Microsoft Word document. I would also like to go beyond...

Xcode - why didn't this show a warning?

I've got a class I wrote earlier in the year, pre 3.0, that implemented the UIImagePickerControllerDelegate protocol. In it, I implemented the imagePickerController:didFinishPickingImage:editingInfo: method, which is deprecated in the 3.0 SDK. The thing is, I noticed this just by cruising through the documentation, and not from a compi...

Memory behavior of / Possible memory leak in UITableView

Hi guys, I am profiling my iPhone application with the 'Activity Monitor' Instrument. When I use UITableViews and scroll through them, I see the memory usage of my application go up all the time while I scroll. When I return to the previous view and the UITableViewController gets deallocated, the memory usage goes down a bit, but not to...

how to set default name & company name on comments in Xcode?

When we add a new file, In .h & .m file, there is always a comments/documentation section at top. example. // // SimpleGameAppDelegate.m // SimpleGame // // Created by hbmac2 on 01/10/09. // Copyright __MyCompanyName__ 2009. All rights reserved. // Here, there is by default hbmac2 - is user name & MyComapnyName is also default. ...

ccp & cpv - function difference & full form of cocoa

I have following code in my Application. I am new to game development in iPhone using COCOS. Sprite *bg=[Sprite spriteWithFile:@"menu.png"]; [bg setPosition:ccp(240,160)]; [self addChild:bg z:0]; [self addChild:[GameLayer node] z:1]; } return self; } @end @implementation GameLayer -(id)init{ if(self=[super init]){ Label ...