- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
xmlParseChunk(context, (const char *)[data bytes], [data length], 0);
}
my Question is as follows
=> didReceiveData: method receives data in parts
Some what like this
first data----------| <masterData>Main</ma
second data-----| ster><maste...
We develop using Xcode 3.2 on Snow Leopard. The application we're developing however targets 10.5+ (Leopard).
I'm looking at setting up a continuous integration server (via CruiseControl).
I have an old PPC Mac Mini around. I realize that it will only run 10.5 with Xcode 3.1.3.
Am I likely to have any luck setting the Mini up as the i...
I am currently using xcode for some c++ development & I need to generate getters & setters.
The only way I know is generating getters & setters in Objective C style
something like this
- (string)name;
- (void)setName:(string)value;
I dont want this; I want c++ style generation with implementation & declaration for use in the header fi...
I am developing an application in which i want to use push notification service.i have a sever.now i want to know that how do i handle multiple devices? is there a unique device id/name for every iphone? suppose i want to delete request for a specific device token,so how do i handle multiple users? is there a way i can generate unique na...
Can u please let me know the procedure as how create a Framework for iPhone?
Is there any seperate prodcedure to create a Framework in Xcode?
Thanks in Advance.
...
Hi all,
I'm creating a static lib on Mac OS X for one of our customers, as well as a small cmd line app to test the static lib. The cmd line project has 2 extra library search paths, which meant I was linking to the Debug version in Release mode and just about went crazy, so I tried to get rid of these two paths, but I couldnt find wher...
When you check gather leaked memory contents in the Leaks instrument what does this do? I have a troublesome leak and thought maybe this "memory content" might be useful in tracking it down...but I can't find it!?!
...
I've seen many apps in the app store who's icons on the iPhone Springboard do not have the default rounded corners and "glass effect" that are created by default when I just add a 57x57 png to my resources and specify it in the plist. Does anyone know how to NOT get the iPhone to add the attributes to my application icon image when I com...
When my Cocoa app hits an assertion in the code, gdb gives me a prompt as expected, but it's never (ok, rarely) in the right thread.
I know I can use Xcode's GUI debugger and it makes it a little less painful, but I'm thinking there has to be a gdb command line trick I don't know.
Is there an easier way of finding the thread that asse...
I have an Xcode project with several static library dependancies set up in the Target's build options.
This means everytime I build the project, the dependancies also get built.
My question is, which configuration is chosen for the dependancies when they are built?
E.g. In my project, I select 'App Store' as the configuration to build...
This is something stupid I probably should know, but Googling fails me:
When compiling the binary I'm going to submit to the App Store, in the Project Info -> Build tab, there's an "Architectures" option. The default is "Standard" but I noticed there is also "Optimized"
Which should I use when submitting to the app store? I have been u...
My installation of XCode 3.2 has begun to exhibit some strange behaviour.
When I try to add a basic Objective-C classs (inheriting from NSObject), in my iPhone project, I get the following popup: "Alert. Couldn't load the next page".
The above-mentioned error happens at the point of trying to create the file (i.e. the creation process...
I am trying to understand the key differences between these two types of Core Data application templates.
My understanding is that with a document based core data app you get access to NSDocument instances and a lot of document based behaviors for free (save dialogs, undo, etc).
Assuming I want to create an application that is more "Pr...
What are some uncommon or "hidden" features of Interface Builder you wish you would have known about when first learning Xcode + Interface Builder?
Edit:
Xcode specific tips here.
This question is specifically concerned with the GUI and not so obvious features of Interface Builder. And only tangentially related to Xcode.
...
I have an Objective C project incorporating a C file with some helper functions. I have a grave and very irritating problem trying to return floats from the C file.
C file:
float returnFloat() {
return 10.0;
}
Meanwhile in an Objective C instance method:
float x;
x = returnFloat();
x is always 0.000000. Any ideas what I'm doin...
Is it possible to find and replace in selected text in Snow Leopard Xcode 3.2? There always use to be an option for selected text. Really frustrating. Thanks.
...
Open X code. Go to help menu / or press command + shift + /
Select documentation option.
Now a help window will be opened. In this help window, on the left side there are many options like - iphone os 2.1 subscribe, iphone os 2.2 subscribe, iphone os 3.0 subscribe, xcode reference subscribe ( something look like this )
If we press iph...
If I try to delete some image resources from my (iPhone) XCode project via Finder, XCode will complain with errors on next build that it can't find these files.
If I try to delete them via XCode's 'Delete' command, XCode crashes everytime without fail.
Any solutions? Hints?
...
I'm working on a Core Data application. I'd like to create interfaces on both the Mac and on iPhone, with both sharing the same model code.
Is it possible to set up an Xcode project to have both OS X (x86_64 10.6) and iPhone targets? Or is there a better way to do this?
...
I recently upgraded my machine from Leopard to Snow Leopard. Also I installed the latest Xcode 3.2.1 for Snow Leopard.
Currently I am not getting code completion for built-in macros. For example 'if' followed by ESC gives completion list with #IF and ifstream. However I can insert it from menu Edit>Insert Text macro>C>If Block.
Any he...