xcode

Why is my app delegate's didFinishLaunchingWithOptions method all of sudden being called AFTER my RootViewController:viewDidLoad method?

Hi. I've been playing with the iPad's SplitView template in Xcode. Here are two of the many important methods that are auto-generated for you by the Split View-based Application template... AppNameAppDelegate.m #pragma mark - #pragma mark Application lifecycle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpt...

xcode - iPad App. Status bar overlaps toolBar.

I have an app fully finished. It is very simple. Uses a toolBar up top with a few buttons. Under this is a WebView. The WebView only opens one URL and there is no way to get away from this site. Thats the point of it. Now the issue. The status bar overlaps the toolBar. My temp solve is to hide the status bar, but I really need it...

Array of Objects

Complete and utter neophyte to Objective-C and the entire Mac platform so don't flame me please =). Basically I'm trying to create a simple game. The game has a board which I've created a class for and a board is comprised of squares which I also created a class for (board and square respectively). In my view controller I'm trying to ...

"out of scope" error when iterating an NSMutableArray

Why am I getting an "out of scope" error whenever I try to access the "url" variable in this loop? for(NSString *url in self.winnerImageURLs) { [mediaItemString appendFormat:@"{\"type\":\"image\",\"src\":\"%@\",\"href\":\"%@\"},", url, url]; } The class of very item in the "self.winnerImageURLs" NSMutableArray comes back a...

TouchXML to read in twitter feed for iphone app

Hello there, So I've managed to get the feed from twitter and am attempting to parse it... I only require the following fields from the feed: name, description, time_zone and created_at I am successfully pulling out name and description.. however time_zone and created_at always are nil... The following is the code... Anyone see why th...

RegexKitLite & Unrecognized Selector Sent to Instance Error..

Hi Guys, I am not sure why the following line: addDetails.Address = [addDetails.Address stringByReplacingOccurrencesOfRegex:@" +" withString:@" "]; causes an "Unrecognized Selector Sent to Instance" error, closing my iPhone App in my Simulator(XCode). What's wrong with my code? ...

XCode: Capturing swipe gesture and creating a moving object

Newbie in XCode & IPhone development. I'm trying to create a game, where throwing an object (using a swipe gesture) will move the object to the direction requested and will continue with momentum until the border of the view. Anyone has some code snippets (or links) I can look into for examples? Thanks. ...

Compiling for older versions of Mac OS X

I have recently started producing applications for the Mac, on my most recent release I got overwhelming suggestions to get the app working on OSX 10.5 as I'm working in and compiling for 10.6. I tried looking for the 10.5 SDK but couldn't find it anywhere to download! How can I go about compiling my app for older versions of Mac OS X u...

Release and pushViewController

Hi, I have a custom view controller that I push onto my navigation stack as follows: myViewController *myVC = [[myViewController alloc] init]; [myVC generate:myData]; [self.navigationController pushViewController:myVC animated:YES]; the code runs fine, but when checking for memory leaks I get a warning that myVC is never released. ad...

From Xcode 3.2.2 to Xcode 3.2.3

Hi Everyone! Yesterday I felt in big issue that happens with all my projects. After I installed new Xcode 3.2.3 (for iPhone OS 4), all my projects started to spit out the "referenced from:" errors. I noticed that in new Xcode all the iPhone SDK versions earlier than 3.2 removed. But I have a projects that built perfectly for iPhone SDK ...

Iphone: writing some methods in a seperate file to acess from everywhere

Hey, here is a quick question, i have my couple view controllers classes, and have some other classes. i've found my self creating some methods in all of their implementation files, which are doing the same. i would like to write some of my methods in a seperate file, and import this file into my view controllers. therefore, i will be ...

Where do I put .xcolortheme files in Xcode when there is no ~/Library/Application Support/Xcode/Color Themes folder?

I'm just getting started with Mac and iPhone development, and naturally my first step is to change the color theme. I've found a theme I like here, but I can't find the folder they reference in my ~/Library/Application Support/ folder. How can I install these files? Thanks! ...

Canon EDSDK 2.8 (Xcode 3.2.2 - Snow Leopard 10.6.3)

I'm trying to build an application using the Canon EDSDK 2.8. I created a new Cocoa Application project in Xcode, and imported the headers and framework files. When I try to build and run (without writing any code), I get two warnings that say the frameworks are missing x86_64 architecture files. If I try and import the "EDSDK.h" header ...

Are there any good tools to integrate BaseCamp in XCode or OS X?

Are there any recommended Basecamp plugins/stand alone apps for XCode/OSX to manage milestones & to-do's etc? ...

How to display complex object in debugger?

I'd like to display the contents of the property myarray, from the following singleton: [Session sharedManager].myarray I've tried these: po [Session sharedManager]. myarray po [[Session sharedManager] myarray] but always get this error: A syntax error near end of expression. Any suggestions? --- EDIT --- I'm working with SDK...

Clear UITextField when standard number pad is pressed

Hi all, I'm sorry if I didn't explain my problem well enough in the title. In my application, I'm using a small subview to create a very basic calculator on the top side of the screen (I just have an UITextField to show the operations and two buttons). Instead of using a custom keyboard for it, I want to use the standard iPhone number...

Iphone sdk - recording the game play within a game

Is it possible to add a feature to record the game play within your game without eating up too much memory ? I want to allow the user to save there game as some sort of video file if thats possible ? // Edit - made things easier to be more relistic// The idea is that the user can use the app to change the textures within a pre-animate...

Can AppleScript Do This?

I need to be able to send text from the clipboard to an application I'm writing (in Objective-C) via AppleScript. Obviously I need to make my application scriptable (I'm currently reading the Apple Docs about this) but is this possible/easy-to-implement? ...

[iphone] method created in a seperate class returns "out of scope"

Hey, I have created a Class (subclass of NSObject) which will hold all my SQLs/dbConnections etc.. in a seperate viewcontroller, i have instantiated the SQL's class and performed some actions, all went trough OK. but. one of my methods in the SQL's class is a method defined as follows: -(NSString *)queryTable:(NSUInteger *)fieldnum ...

Background Image w/Quartz Drawing

I'm using Quartz to do some basic drawing. I recently decided I wanted a background image for my app. So I went into my XIB file and added a UIImageView and set the background, looks good. However, when I run it, the Z-Index of the image is above my drawing. I googled a bit and found that you can do Layout > Send to Back in IB...but ...