Objective-C: How to cast a boolean as an object for use with NSKeyedArchiver
I need to cast a boolean as an object, or NSKeyedArchiver throws a memory access error. What's the best way to do this? ...
I need to cast a boolean as an object, or NSKeyedArchiver throws a memory access error. What's the best way to do this? ...
I want to implement something like this.Main screen shows login info.After login i want to show a view with 4 buttons in upper part of view.Names button1,button2,button3,button4 The first time view appears i want to show a view below buttons.And by clicking each button show different views? BTW for buttons i took UIsegmentedControl in a...
I have the following code: AXWindowController *controller = [[AXWindowController alloc] initWithWindowNibName:@"ActivateWindow"]; [controller showWindow:nil]; How do I use controller to make changes to the window ActivateWindow (eg. changing text on the window, etc.)? Step by step instructions would be appreciated. Thanks! ...
Hi everyone, Please help! I define a custom UIControl with three labels, then on the viewDidLoad function of the main view controller, I repeatedly add multiple instances of that UIControl into the scroll view. I need one of the label within the UIControl to be updated with new value each second. I have a question, how to clear the pr...
I am looking at a project which contains a mix of source files - built on a variety of systems. When I attempt to compile it, I'm getting some errors from the pre-processor which suggest that my line ending formatting mix is just not cutting it. Is there a quick way to correct this in Xcode? I'm looking to globally change the line endin...
Hi, I have two ViewControllers: The RedButtonViewController and the TweetViewController. The RedButtonViewController generates random numbers in Textlabels and I want to use the number or the label with the TweetViewController. How can I make this? Thanks for your help! My TweetViewController will be opened with this code in the RedBut...
I'm building a custom Xcode framework, and I have a class called AXController that has a class method called showActivationWindow. showActivationWindow initializes and shows a window using AXWindowController which is a subclass of NSWindowController. Then, AXWindowController calls activate which is a class method in AXController on a but...
I'm making an Xcode framework, and I have one public header which accesses a bunch of project headers. But when I import the framework in another project, it throws errors that it can't find the header files that are project. I have referenced objects from the project headers in the public header. How do I keep those headers project but ...
I am new to iPhone development so I have been working through some tutorials. What I don't understand is how xib fit into the work flow. In a tutorial, one of the instruction is to create a new UIViewController subclass with "XIB for User Interface" selected. On my first try, I neglected to check that option and I thought may be I c...
Basically, I'm looking for an IDE for PC that's like XCODE. What I'm really looking for is the on line error highlighting, as seen here http://i45.tinypic.com/2h6srag.jpg So far I haven't been able to find anything with this. ...
Hi I'm creating a project in Java using XCode 3.2.1..... But it is giving an error 'Build.xml does not exist'. The file is present in my build folder...... What should I do??? ...
Every time I compile my iPhone project, Xcode renames my Default.png to default.png The file name in my project is Default.png, so it's correct in my project. It gets renamed somewhere in the compile process; is there any way to stop Xcode from renaming this file? It's the only file that gets renamed for some reason, and my app wont di...
I'm getting a strange compile warning. It's intermittent, and doesn't appear every build. I get the warning "initialization makes pointer from integer without a cast" for the following line: callbackTable *callbacks = generateLoggingCallback(); and, for completeness, this gives the same outcome callbackTable *callbacks; callbacks = g...
I am creating an application and I have a customized header of tableview. But sometimes the header gets duplicated. It takes the place of a row in tableview. How do I solve this strange problem? BTW, my tableviewstyle is plain, Header height is 44.0 and the footer height is 0.0. Here is an image how it displays. The header "comments" is...
I'm working on the book "programming in objective c 2.0" and im not understanding why this program is not working. basically i need to build a program to convert a fahrenheit value to a celcius one. I figured to just solve it very simply without objects and just use a straight procedural methodology, any way the problem I'm having is th...
I'm writing a build script to compile and package my app, and I'd like a nice way to get the full path name of the .app created. I can't find any command line tools other than xcodebuild, which doesn't appear to have much in the way of inspecting an Xcode project. My full compile command is xcodebuild -sdk iphoneos2.2.1 so it'll build...
I have an app that interacts with both the iPod player, and the iTunes Store Web Service Search API. Is there a way to obtain the iTunes ID for a song that I retrieve from my user's iPod library (e.g. via MPMusicPlayerController, or MPMediaItem)? The documentation says that the MPMediaItemPropertyPersistentID is a unique identifier tha...
I have a project which builds correctly from the command line. On one of my Macs (10.5) running Xcode 3.1.2, I can load it and build it in the Xcode IDE. On my other Mac (same configuration of software), Xcode sometimes loads the project, but always locks up with a spinning beach ball at some point before the build is done. Sometimes ...
My iPod has the Beta OS 3.0 and I can't find any way to upgrade it to 3.1. ITunes says is up to date, XCode doesn't offer any upgrade options. Am I missing something? ...
Hi. I have created a package installer using Xcode's PackageMaker. I want to install a .app file into the applications folder, but when i am running installer package, it's showing that the software is installed succesfully. When i checked the applications folder, the application i m installing is not there. Can anybody help me to solve ...