xcode

xcode programming

i wrote my programs in visual-studio. now i have an mac and i want to program there like visual-studio. but there are differences between them. Is there any solution that i can write a code in Xcode that it is compatible in visual-Studio and works without any errors? ...

Breakpoints not working in XCode 3.1.4

I'm using the 3.1.3 SDK (XCode 3.1.4) and I've done all the things in many threads (and books) and I have never gotten breakpoints to stop the execution. I had no problems with this in some earlier versions of XCode, so I know how to do it and how it is supposed to work, but this version just doesn't seem to work for me. Please help as...

Why do my xcode builds always go to the iPad simulator instead of the iPhone simulator?

I just installed the latest SDK from Apple so I can start learning iPhone / iPad app development. However, I'm having a stupid issue: all my builds get run in the iPad simulator instead of the iPhone simulator, and I have no idea how to change it. ...

cell.detailTextLabel.text not working... why

Using the following code I am getting the text.label but not the detailTextLabel.text. The NSLog is displaying correctly. cell.textLabel.text = [eventLabels objectAtIndex:indexPath.row]; cell.detailTextLabel.text = [eventFields objectAtIndex:indexPath.row]]; NSLog(@"%@", [eventFields objectAtIndex:indexPath.row]); I also tried....

NSUserDefault exists -iPHONE SDK

Hello everyone, How would I check in a "if" statement if the NSUserDefault object is saved there or not? I'm not really sure how to call it.. So a pretty short question.. Thanks ...

Objective-C: How to Call a Instance Method

Hi all, I need to call a method I have defined as: -(IBAction)next:(id)sender{ ... } I want to call it in -[UIViewController viewDidload] How can I call this method programmatically? ...

No events such as 'Editing did Change' for a NSTextField?

When I developed for the iPhone I had multiple events on touch that could be true for a button. (e.g. Editing did Change, Editing did End …) Now that I develop for Mac OSX I want my application to recognize multiple events in a NSTextField. How to do that? Is there an alternative for the events? Thanks! EDIT: May delegates be the ke...

toolbar in all views (global toolbar)

how can i define a toolbar which is available in all nibs? i have 4 button in my toolbar. one of them is for first view(nib1)and 3 of them are for second view(nib2). ...

Xcode breakpoints shifted at runtime

I have been searching for an hour or so here and on Google and cant find the answer as to how correct breakpoints being shifted during run. I have reinstalled Xcode(3.2.2), insured load lazily is off, no optimization in target settings, and every other target setting that might cause the problem. I have also destroyed all of the user pro...

How do I increase font sizes within XCode

I have managed to increase the font sizes for the XCode editor window, but haven't found a way to increase font sizes in other areas of the application, such as the Groups & Files side bar and the console window. Someone suggested using TinkerTool to do this, and I downloaded the tool, but it's not at all clear to me how to use the to...

Why does didLoad not fire?

I have a startup view controller which has the following: - (void)viewDidLoad { [self loadMainMenu:nil]; [super viewDidLoad]; } This does the following: -(IBAction) loadMainMenu:(id) sender { [self.view insertSubview:mainMenuViewController.view atIndex:0]; } My mainMenu.h has the following: -(IBAction) loadRules:(id)...

"Import" a sourceforge project into Xcode

Hi, I am new to OSX and Xcode. I got a macbook with Xcode 3.0 and downloaded the C++ of a sourceforge project, which comes with the structure: config.mk doc include lib Makefile soruces in this kind of projects I usually work with "vi" and edit the ncesasry files. Here I want to debug the code and use subversion. What is the best way...

Failing to read array data from a plist - (null) ejected.

Hey! I am currently trying to get data out of a plist. It basically looks like that: plist called 'woerter' -> Root key of type Dictionary -> woerter key of type Array -> various Items of type String with string Values When I now try to read a random string from it, I only get a (null) expression NSString * path =...

CryptInit (Cryptlib function) failure in Xcode

I have put the libcl.3.3.dylib in /usr/lib folder and all the compilation and linking are done. However, i received a failure of CRYPT_ERROR_PARAM1 in CryptInit function. I get the libcl.3.3.dylib from "port install cryptlib" and copy them to "/usr/lib". It seems unusual for the cryptInit function to fail... hope you guys can help....T...

Is it possible to have "implementation-only" class members?

Hi, this is kind of a beginners question so please bear with me. I've got a class that makes use of a third-party library (oniguruma, if that matters). I want library methods to be completely decorated by my own, so that I can switch the underlying implementation of my class anytime. Something like: // MyClass.h @interface MyClass : N...

Self-signing Code in XCode for IPhone?

How can I self-sign an iPhone application using XCode? I have done the following: Created a cert following these instructions Modified my /Developer/Platforms/iPhoneOS.platform/Info.plist to include the two keys <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</st...

How do I include CSS resource in programmatically generated HTML for iPhone UIWebView?

I am programmatically generating HTML and want to link to a CSS file that I've included in my Resources folder. I am using a baseURL of nil, and my CSS file is at the top level of the project file, but this "link" is definitely not working (ie, the CSS file is clearly not being loaded/found when the UIWebView displays the HTML). Is it p...

Data loading systems for the iPhone

I’m trying to decide the best way to load data into my app, it’s basically a book, but I want to have control of the chapter line number and chapter name ( so I can add comments and notes under relevant lines) etc. Both options allow me to do this. There’s going to be about 25 large-ish chapters. What would be the best overall in term...

xcode snapshots

hi guys What exactly does xcode do with project snapshots after the xcode project is moved or renamed. I have noticed they completely disapear...Where should I look? Defintely not in ~/Library/Application Support/Developer/Shared/SnapshotRepository.sparseimage ...

Pure Python in Xcode?

Could anyone tell me how to use pure Python without Cocoa support in Xcode? I can only find the Cocoa-Python template on the Internet. Thanks in advance. ...