I'd like to add ~/include to my include path for all projects while using Xcode, something like setting the environment variable CPLUS_INCLUDE_PATH in Linux. (See here for the related Linux question.)
Is this possible in Xcode? I tried setting the above environment variable, but it doesn't seem to work. (And if it is possible, I'd like ...
I don't have any experience tweaking Xcode build scripts. I've created a static library. When the referencing app builds for debug simulator, I have to make sure the library also has a recent debug simulator build, rather than say device debug. Is there a way to build in the referencing project and have the static library automatical...
I was using classic Unix Makefile generator until I found a webpage explaining CMake could produce a nice xcode project file using "cmake -G Xcode" so I ran that command in my source directory and I get a nice xcode project. This is great but I'm facing some drawback and was wondering if there are solutions to these :
now I can't build...
Is it possible to see the numeric value of an NSNumber in the debugger datatip on in the variable watch window?
I store an Integer value in NSNumber and want to see this value during debugging.
I tried some of the data formatters in the debugger already, but it wasn't much help.
...
I've set LIBRARY_SEARCH_PATHS to /opt/local/lib, and verified that the library in question is there (I'm linking to GLEW):
$ls /opt/local/lib
libGLEW.1.5.1.dylib libfreetype.a libz.a
libGLEW.1.5.dylib libfreetype.dylib libz.dylib
libGLEW.a libfreetype.la pkgconfig
libGLEW.dylib libz.1.2.3.dylib
libfreetype.6.dylib libz.1.dyli...
How do I insert a matching parentheses in Xcode when I insert the "("? I know how to do this for braces "{", but can't figure out how to do it for parentheses!
Thanks!
...
I was happy in my world of python and matplotlib with a good level of familiarity. I notied Xcode on my Mac wasn't working so I installed the latest version from Apple and it somehow broke my install of matplotlib (or numpy?)! I'm now getting
...
/sw/lib/python2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-
10.5-i386.egg/matplotlib/n...
That's important for good documentation, but currently it just doesnt work well. If I copy source code from Xcode editor into OpenOffice Writer, then every single line is an own paragraph. I have a paragraph style for source code, but because of multiple paragraphs I get a lot of unnecessary spaces.
Could i program a macro that combines...
I am using an action sheet to alert a user to several items upon logging into my app. listed are some examples of the alerts and the buttons that go with them.
INVALID USER - OK
INVALID PASSWORD - OK
INVALID USER - OK
UNKNOWN USER - CREATE NEW USER, CANCEL
USER ALREADY LOGGED IN - DISCONNECT, CANCEL LOGIN
What is the best way to manag...
What are the differences between debug and release builds for a Cocoa application?
I know the debug version contains additional information for debugging but what else is different?
...
In a breakpoint action, I'm going this:
@(const char *)[(NSString*)[myobject retainCount]UTF8String]@
which gives this output:
<Error: Cannot access memory at address 0x2>
If I do this:
@(NSString*)[myboject retainCount]@
it outputs a memory address. But if I do this in code:
NSLog(@"retain count is: %d", [myobject retainCount...
I've written a C++ matrix template class. It's parameterized by its dimensions and by its datatype:
template<int NRows, int NCols, typename T>
struct Mat {
typedef Mat<NRows, NCols, T> MyType;
typedef T value_type;
typedef const T *const_iterator;
typedef T *iterator;
enum { NumRows = NRows };
enum { NumCols = ...
Hi guys,
The motivation for this question is me trying to get LDAP functions to work with an iPhone application which is a project I'm attempting for part of my dissertation.
When I was developing the application I used the ldap.framework framework that is part of Mac OS X. This works fine in the simulator, but when I try to now get t...
Hi all,
For debugging purposes, I'd like to display as much class information as I can, and possibly runtime information (which thread does the class/function run in, etc) into the console.
Is there an easy way to do this with a function, variable or even (external) framework?
P.S: I'm using Cocoa Touch.
...
Where can I get the 10.6 SDK for XCode? I have the beta of Snow Leopard, and I installed XCode off of the DVD, but it only installed the 10.5 and 10.4 SDKs. I need to build against 10.6 to verify a bug for Apple.
...
Hi,
I'm working on an assignment which is to simulate the beginning of the universe using C and OpenGL/GLFW.
I'm pretty new to C and also to Xcode, which is not helping at all. I've overcome my silly compilation problems and the code is finding GL/glfw.h ok. When I compile and run I receive a "Visualisation [name of the project] has ...
I'd like to map a key to move the cursor in the XCode up by ten lines. Of course, I want another one to move down too. The key mapping would ideally be something like 'Control-Alt-P'.
Is there a way to achieve this in XCode without resorting to Automator?
Ashley has the answer below, the formatting was a little different as the pro...
Is there any way to test my objective-c code on windows..
is there any ide like xcode for windows to develop iphone applications.
...
I have the following two procedures defined in my AppDelegate. saveSettings and loadSettings. I am calling my loadSettings procedure in the AppDidFinishLaunching method, and I am calling the saveSettings procedure in my settings view, once the save button is clicked.
Both methods seem to be called at the right time, the right number of ...
To phrase my question as simply as possible, is there a way to create a core animation sequence to repeat over and over until a stop?
Specifically, I'm making a custom class that I want to have a -start and -stop method that will cause it to pulsate. Writing the animation code for the pulse is not the problem, rather, how to make it rep...