xcode

Skype Mac API - Use AppleScript or 5 year old API?

I have a x86_64 app that I would like to have optionally read Skype status messages. However, the 5 year old skype mac framework is 32-bit, and if there is a way to have that compile within a 64-bit app, I haven't found it. My question is, basically, how should I go about doing this? I really only need to get and set the USERSTATUS AWA...

Is there any way to get the iPhone Model number ?

I just figure out the device on which i'm working by the code given bellow: struct utsname systemInfo; uname(&systemInfo); NSLog(@"%@", [NSString stringWithCString:systemInfo.version encoding:NSUTF8StringEncoding]); But is there any way to find the model of my iPhone??? Thanks in advance .... ...

Should I release NSString before assigning a new value to it?

Hi, Please give me some suggestions about how to change a NSString variable. At my class, I set a member var: NSString *m_movieName; ... @property(nonatomic, retain) NSString *m_movieName; At viewDidLoad method, I assign a default name to this var: -(void)viewDidLoad{ NSString *s1 = [[NSString alloc] initWithFormat:@"Forrest Gump"]...

Is it possible to run a compiled program with Xcode on Mac OS X in FreeBSD? (Objective-C/Cocoa)

Hi. I have a plan to build a web-site which running CGI made with Cocoa. My final goal is develop on Mac OS X, and run on FreeBSD. Is this possible? As I know, there is a free implementation of some NextStep classes, the GNUStep. The web-site is almost built with only strings. I read GNUStep documents, classes are enough. DB connection ...

Integrating GSL onto iPhone Xcode

I have been trying to integrate GSL (Gnu Scientific Library) into an iPhone project using Xcode. The challenge is GSL has all the modules in different folders, yet when their header files are reference, they often reference instead of or . At least with I could use Xcode's recursive header file search to find it. But with , basical...

Where is the iPhone's Date & Time getting its time zone list

I can get a list of time zones with [NSTimeZone knownTimeZoneNames], but that only gives the time zone IDs which include one or two cities in each time zone. The Date & Time settings has a great list of cities and I have seen a few other apps that have the same if not similar lookup lists. Where do these lists come from? I do need to ...

applicationWillTerminate Appears to be Inconsistent

This one has me batty. In applicationWillTerminate I am doing two things: saving some settings to the app settings plist file and updating any changed data to the SQLite database referenced in the managedObjectContext. Problem is it works sometimes and not others. Same issue in the simulator and on the device. If I hit the home button wh...

iPhone OpenGL Template is cheating?

XCode's OpenGL template seems to be cheating to solve this "stretched" viewport problem I've been trying to understand for the last 3 hours. In the iphone "OpenGL ES Application" template, the colorful square that bounces up and down on the screen is not really a square at all! ES1Renderer.m (the ES2 file as well) static const GLflo...

uibutton controlstate image problem

i have a uibutton. im using two images for UIControlStateNormal and UIControlStateSelected. when i touch down the button it shows the UIControlStateSelected image for a split second. what is the reason? ...

Simple square that can change color in Interface Builder/Cocoa

Hi there, For an application that I am developing I need to create a grid of squares. The only relevant property they should have is the ability to change to any color (RGB). 1) What kind of object should I use? Custom? 2) Am I overlooking something? Should I, for instance, be using Core Animation? Thanks in advance. ...

how to resume facebook session key after user change facebook password

hey i have iphone application that using facebook connect. users login to the iphone application using facebook connect. and then i receive their sessionKey back to my server, and i am using the sesssionkey to post actions to users wall. the iphone application keeps the user logged in allways. which means that every times the user will...

xcode scripting language

i notice that Java has a number of ancillary scripting languages. Clojure and Groovy for example. My understanding is that these can be used when the full might and power of Java does not need to be applied and a speedy cludge can be hacked in Groovy/Clojure. But at the end of the day the scripting tools contribution gets compiled into t...

Mixing libraries with and without RTTI with GCC on Mac OS X?

I've been banging my head on an issue and before I continue injuring myself some more, I'd like to confirm: Is it possible to have a GCC project that uses libraries that are compiled with and without RTTI? So, for example, I have project A (compiled without RTTI) that uses library B (compiled with RTTI) and library C (compiled withou...

XCode Code Snippet Macros Not Working Consistently

Hi, I'm a newbie, but things aren't consistently working for me in the XCode editor. I'll be in a method, and type "For" (without the quotes of course). What's supposed to happen is the entire For structure appears for me to fill in, right? Well, the For gets highlighted to show it's a key word, but the snippet doesn't show up. At that ...

NSZombieEnabled breaking working code?

I have the following method in UIImageManipulation.m: +(UIImage *)scaleImage:(UIImage *)source toSize:(CGSize)size { UIImage *scaledImage = nil; if (source != nil) { UIGraphicsBeginImageContext(size); [source drawInRect:CGRectMake(0, 0, size.width, size.height)]; scaledImage = UIGraphicsGetImageFromCu...

How can I test my iPhone app on earlier than SDK 3.0 simulator, make sure it work?

Hi Stackers! I wrote iPhone application. Very simple! It use Cocos2D only, and all other features is very basic, no accelerometer, no camera, nothing. Just buttons and sounds. I think every iPhone can run this app (there is no limits on Cocos2D right?), but my XCode only let me use 3.0 and upwards. I want to confirm 1 thing and ask one...

Prevent OCUnit tests from running when compilation fails

I'm using Xcode 3.2.2 and the built in OCUnit test stuff. One problem I'm running into is that every time I do a build my unit tests are run, even if the build failed. Let's say I make a syntax error in one of my tests. The test fails to compile and the last successful compilation of the unit tests are run. The same thing happens if ...

iphone application communicating with a java servlet on a WebSphere.

Hello, Here is a Generic question: I wish to build an iPhone application that will communicate with a Java Servlet installed in a webSphere, my iPhone application will ask the servlet to perform some SQL queries in the connected DB, and will receive the answers accordingly. Please help to understand the following questions: How shou...

MPMoviePlayer in Simulator

I upgraded my Xcode to 3.2.2 and SDK from 3.1.2 to 3.2. Now when I try to start a video in MPMoviePlayer from an URL it shows the first frame, but never starts playing, even with the "MoviePlayer Sample Application" from Apple. Does anyone have any idea what can cause this or had similiar problems? edit: strangely it works in 3.0, but ...

how to create a auto-incremented attribute in xcode managed object model

Hey, what i want to do is to make a int that will be the ID of the entity and auto increment itself whenever a new entity is added (just like a SQL identity property). Is this possible? i tried using indexed (checked on attribute) however there is no description to what indexed even does. EDIT: I am adding annotations to a map, when y...