Hi,
I have the following code:
#import <Foundation/Foundation.h>
#import "ServerRequest.h" // works even though this line is included
#import "ServerResponseRecord.h"
@protocol ServerRequestDelegate<NSObject>
-(void)request:(id)request gotResponseRecord:(ServerResponseRecord*)response;
-(void)request:(id)request gotError:(NSError*)er...
So, I have a class called MazeCell which is declared in "MazeCell.h"
#import <Foundation/Foundation.h>
enum {
MazeCellEdgeWall = 0,
MazeCellEdgeGate = 1,
MazeCellEdgeExit = 2
};
typedef NSUInteger MazeCellEdge;
@interface MazeCell : NSObject {
MazeCellEdge left;
MazeCellEdge right;
MazeCellEdge down;
MazeCe...
I used to be able to run my application on my iPhone that was running 3.0. After I updated to 3.0.1 I get the error:
No Provisioned iPhone OS Device is Connected.
I followed Apple's guide in the terminal:
ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0\ \(7A341\) /
Developer/Platforms/iPhoneOS.platform/DeviceSupport/3....
I'm trying to setup Xcode as my primary IDE to work with our existing projects but running into some permissions problems.
Our projects are java based and we use ant to build the jar and it all runs under Tomcat.
Up until now, I have been working strictly from the terminal and a text editor. This has been working fine, but I'm trying t...
I know they sell a lot of apps in the app store that claim to "unlock" emoji keyboards. Do you know how I would go about doing this? I want to made an app that enables emoji keyboards. I have payed the 100 dollar developers license fee if this makes a difference. Thanks!
...
Hi, I was wondering if anyone can get me started on how to build like a maze using openGL. Would i need to write code to draw the maze or is it like painting a picture in a separate window? would i need to create a game engine to start with this? I'm doing this for iphone development so any suggestions for that would be a great start for...
I am building and testing directly on a iphone 3.0 and it works fine. only issue is the JPEG files my app creates in the documents directory seem to be disappearing. This is odd because I have a sqlite db file in the same directory that seems to be there all the time.
The files disappear the first build after I take the photos and save ...
Hi. I have a cocoa interface that uses core plot. When I press a button in the interface, a plot is drawn. I wanted to create a sequence of graphs by calling the plotting method multiple times along with calls to sleep() in between. But it seems that even though the call to reload data is made that nothing happens until the function ex...
Hello,
I have decided to enter the iPhone App development arena and as such have a couple of questions:
Coming from a business management background and having no experience/knowledge whatsoever in developing, what would be the right way to start?
I am aware that I should learn Objective C, to begin with; as well as OOP etc... will re...
Seems these are the only methods to put a NSThread to sleep
* sleepForTimeInterval:
* sleepUntilDate:
Would it be bad practice what I am asking?
...
I'm calling valueForKey on an object. This returns an id which I tried to cast to a BOOL (because I know the value is a BOOL). But XCode gives the following warning:
"warning: cast from pointer to integer of different size..."
So what I ended up doing was this:
BOOL value = [[NSNumber numberWithInt:((NSInteger)[managedObject value...
I'm pretty sure this isn't a duplicate.
Do you use #pragma mark? I've seen multiple ways, which is correct?
#pragma mark -
#pragma mark === Actions ===
#pragma mark -
#pragma mark -
#pragma mark === Actions ===
#pragma mark - === Actions ===
#pragma mark Actions
? What is the way you do it?
How do you suggest dividing it up? What d...
Hi,
How to add a conditional breakpoint in Xcode?
I try setting a breakpoint and then go to 'Edit breakpoint'
I want to break when bytes is 0.
So I add 'bytes==0' in the condition, but it never breaks.
And then I try '(bytes == 0)' as my condition, the gdb crashes:
bool SharedMemory::Map(size_t bytes) {
if (mapped_file_ == -1)
...
I'm writing a graphical application using Objective-C for the front end and C++ for the graphics processing and network communication. I read around on Apple's site looking for a way to link either a .dylib or .so with my C++ code in it to my Xcode project, but nothing seemed to work. I was able to get the project to reference it and lin...
10 billion kudos for life to anyone who can figure this one out.
Nvidia only provides a standard framework for Cg, which I cannot figure how I can link statically. I need to link it statically because it's for a plugin.
Is there any way at all this can be done?
...
Here is a list of break points to put in ~/.gdbinit that are really helpful in debugging memory problems:
fb -[NSException raise]
fb -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:]
fb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
#define NSZombies
# this will give you help me...
is my UIViewController freed when i call another controller ?
How to release memory of controller when i push to another controller ? i take more than 40Mo and application leave because of LOW MEMORY(No leak).
[self.navigationController pushViewController:[[MainListController alloc] init:self] animated:NO];
@interface MainListControlle...
Hi There,
I have mp3 files stored on the iphone and I my application to be able to read the ID3 infomration, i.e length in seconds, artist etc.
Anyone know of how to do this or what library to use in objective c?
Your thoughts are much appreciated.
...
What is the difference between these 2 options under the Project menu drop-down?
Normally I just adjusted things in the Project Settings (which adjusts the info.plist, right?).
Today I needed to change the name of my project. Initially i changed the Product_Name from the Edit Project Settings -> Build window. But that didnt change the n...
I have an app that I want to interact with a web page. (i'm a nube). Basically I want to press a button and the web page will open in a new view...
Thanks...
Sorry I wasn't clear, I am developing on a mac for an iphone. Currently I have a "locate me" app that displays your Latitude and Longitude. I want to use those variables to popu...