I'm getting my feet wet with OpenCL. I'm sure this problem is not specific to OpenCL, however.
the top of my main file looks like:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <OpenCL/opencl.h>
// some code
cl_device_id device_id; //declaring a device id gives no errors
int err = clGetDeviceIDs(NULL, CL_DEVICE_T...
Suppose I have a scroll view in a view & a scroll view's size is 320 width, 2000 height.
When user scrolls & decelerating stops,
I want to know where a scroll view has stopped?
i.e. at 300px or 400px or at 600px.
Thanks in advance.
...
Hi all,
I'm one of a pair of programmers working together on iPhone / iPod applications. I'd like to upgrade to the new version of XCode (3.2) and Snow Leopard, but chances are my partner won't. Can anyone highlight any problems we might have sharing code? Are there incompatibilities between the old and new, or should we be able to s...
I'm looking for example code for setting up a connection to a bluetooth device using the Bluetooth API in Cocoa. Apple used to include this type of example code in the XCode tools package under the /Developer/Examples/Bluetooth folder, but upon downloading the latest version of XCode (3.2.1), these bluetooth examples have been removed f...
Is there a macro or preference setting that would automatically align method parameters along the columns and colons in Xcode?
Basically a shortcut to turn this:
[object methodWithParam:theParam another:theOtherValue something:theSomethingValue else:theElseValue];
automatically into this:
[object methodWithParam:theParam
...
i am using map kit and showing customized annonation view.one is carImage and the another one is userImage(as current location of user).now i want to show current user location default which is provided by map kit.but unable to show it.how do i show blue circle+my car in map kit?
...
For some reason, this very basic code will compile with no errors in Visual C++, but gives errors in XCode. I will need to know why, in order to continue working in Xcode for my Computer Science class.
#include <iostream>
#include <string>
using namespace std;
struct acct { // bank account data
int num; // account num...
Hi,
my project includes a simple C file with a header. Like this:
#ifndef __IMAGE_ARRAY_3D
#define __IMAGE_ARRAY_3D
typedef struct ImageArray3D {
double *data; // The image data
LargeElement *largestElements; // c * nLargestElements
int c, w, h, nLargestElements;
} tImageArray3D; // Error points to here
...
#en...
There is a possibility in MS Visual Studio to go to Tools->Options->Projects and solutions->VC++ Directories and to add header and binary files of additional C++ libraries, and compiler uses them for every project if they are needed. How to achieve such result in Xcode 3.2?
Thank you!
...
For various reasons (and I assure you they are valid, so no "use Cocoa" talk please), I must work with XCode, C++, OpenGL, OpenCL (with a little GLUT on the side) to rebuild a few graphics demos on Mac (coming from XP + Visual Studio 2005 development). The project was built as a Command Line Tool using "c++ stdc++".
My Program.h file co...
Following Chris Hanson's blogs and Apple's Automated Unit Testing with Xcode 3 and Objective-C I have started implementing unit tests for my projects. However, I use a lot of plug-ins (loadable bundles) and I can't quite figure out how to test them.
I figured I would use the approach Chris Hanson described for testing frameworks.
I star...
Hi,
Is it possible to add the debugger console window to the viewport on xcode.
Now it floats on top, and I have to switch between the iphone simulator and the console everytime I use it.
I am still a newbie and learning, my code is peppered with NSLog so I can see whats happening.
I have looked for a way to add it as part of the xcod...
I am trying to follow the instructions for the accepted answer to "PyObjC development with Xcode 3.2". I will repost them here since I don't have enough rep to comment on the actual question:
Here's what I have done to get PyObjC working in Snow Leopard:
Using the Finder, I went to Go > Connect to Server... and connected to http://s...
I have an XCode project (A) referencing another project (B). By default (as far as I understand it) XCode will implicitly build the configuration for the B dependency that matches the configuration of the A's target (e.g., "Debug"). But what if I want, say, A to build as "Debug" and the B to build as "Release"? How would I go about speci...
I'm running Xcode in OS X 10.6 on a Core 2 Duo. Here's a short program:
#include <stdio.h>
int main () {
long a = 8589934592L;
printf("a = %li\n", a);
return 0;
}
When I compile this from the command line (gcc -pedantic) I get no errors or warning. When I compile this in Xcode in debug configuration, I get no errors or ...
There's this Shark entry in my run menu. But it's always inactive. What's wrong? New xcode with Snow Leopard. Installed all developer tools including CHUD from scratch. Shark itself runs but sees no devices, even though xcode does. it builds and runs on the device. no issues.
...
I have a target that uses classes from a static library (.a file).
I have the static library in XCode and it is required for the target and is in the "Linked Libraries" section.
In the code I use a class from the static library like:
#include "class_from_static.h"
But XCode complains that the file "class_from_static.h" is not found...
I'm new to iPhone development and Xcode, so this might be really obvious.
I have the exact same problem as referenced on this forum post
I've created a simple list
application, starting out with a
custom datasource class that simply
returns a hard-wired list of data.
With that working, I'm now attempting
to alter my dataso...
For some reason, Xcode will not take input from a file, while Visual C++ will.
When I run this program in xcode, the variables numberRows and numberCols stay 0 (they are initialized to 0 in the main function).
When I run it in Visual C++ they become 30 and 30 (the top line of maze.txt is "30 30" without the quotes).
Any ideas why this...
I am a member of the iPhone developer program. I've created my development certificate and provisioning profile. I've installed both.
However, when I create an empty new xcode project the Target Destination only lists 'Simulator - 3.1.2 | Debug'. For 'Active Architecture', only i386 is listed. However, in the project settings, Architect...