Hi all,
I would like to send some information to a 'HTTPS' server and get the cookies and html code from the server. I have already complete the cookies and the html part. However, when I use the 'GET' method to set the url and use the statusCode to see the http status code, I found that the status code is 0. I found the error is about ...
Hello friend,
I am trying to read a PDF on iPhone, I got to know that we can get the info about PDF from CGPDFDocumentGetCatalog method. But, this method returns a CGPDFDictionaryRef. I have browsed through the documentation and didn't find any method to extract its Key/Values. Please help me if anybody has solution for the problem. Or ...
I am looking for some reference work or tutorial of a persistent objective-c tree? I am trying to build a family tree (genealogy records) app on iPhone / Mac OS. Thanks!
...
Hi,
I want to create an UIImageView with, for example, "Trend.jgp" for a special case (if-condition). I Tried various ways with CGRectMake but i'm not able to create this picture dynamically to a special place. Furthermore, i can't use the function setimage like it's described in the Developer Documentation.
Has anyone got an idea how ...
I am just looking at mapKit and decided to make a quick button to display my current location, however when I press the button my latitude/longitude always display as [0.000000] [0.000000].
The mapView is loaded as I can see the map on the simulator before I press the button. Previously I have done this by using coreLocation.framework a...
Has anybody used PLCameraController class in iPhone OS 4.0?
Can you please share example how you are using it? Can you also share interface declaration for it?
Thank you.
...
Hi all! I have this problem....
in my viewcontroller.h I defined my class like this:
myClass* iR;
and after:
@property (nonatomic,retain) IBOutlet myClass* iR;
into myClass.h I added this:
@protocol myClassDelegate <NSObject>
-(void) didLogon:(bool)isLogged;
@end
and after:
@property (nonatomic, assign) id<myClassDelegate> dele...
Hi everyone,
I'm trying to subclass UIImageView in order to create an instance of the subclass which plays different animations, depending on a variable I send it. My initial code (before subclassing) for playing a specific 2 frame animation looked like this. 'bubbleAnimationTemp' is just a UIImageView object I declared in the header: ...
How can we read executable files in memory and then manipulate them , does NSFileHandle can works with executable files and how so ?!
Thank you.
...
Or in other words why would I need to retain the object returned by [NSManagedObjectModel mergedModelFromBundles]. Is there any memory menagement rule explicitly guiding me to retain it? I assume the retain count is 0 on return.
...
[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
I used to know that sending a message to the object is kind of calling the method. However, I can't recognize what is NSSearchPathForDirectoriesInDomains. Is it C style function? If yes then why among all message style calls we have thing kind o...
Hi I am getting unable to configure leaks instrument for target process when i try to run the performance tool with my app on a simulator. any ideas? I have the last xcode version. Thanks. I never had this problem before. I noticed this after updating my xcode.
...
Hi,
I'm trying to check if some email address is correct with the following code :
NSPredicate *regexMail = [NSPredicate predicateWithFormat:@"SELF MATCHES '.*@.*\..*'"];
if([regexMail evaluateWithObject:someMail])
...
But the "\." doesn't seem to work since the mail "smith@company" is accepted. Besides, I have the following warning...
i am developing an application in which i will be sending a string to peer(after converting it into NSData object) and also an UIImage again by converting into NSData object.
Now at receiving end i have a receive method
- (void) receiveData:(NSData *)data
fromPeer:(NSString *)peer
inSession:(GKSession *)session
...
I'm trying to use an Objective-C class made in Python to do this but Objective-C can't call the method which calls the python function.
Here's the framework code which the Objective-C code:
//
// scalelib.h
// Scalelib Cocoa Framework
//
// Created by Matthew Mitchell on 04/07/2010.
// Copyright 2010 __MyCompanyName__. All rights r...
Hi everyone, if I create an nsmutablestring and then release it , shouldn't the retain count be 0?
my retain count stays 1.
NSMutableString *text = [[NSMutableString alloc]init];
[text release];
NSLog(@"retain count %d ", [text retainCount]);
Am I missing something ?
thanks.
...
This question is basically the inverse of this other question: http://stackoverflow.com/questions/1308079/calling-python-from-objective-c
I have implemented my iPhone application logic in Objective-C (obviously), and am now trying to re-use as much as possible from my XCode project in the server component to save on double-implementatio...
I'm working on a charting algorithm that will give me a set n array of y axis values I would use on my graph.
The main problem is that I also want to calculate the number of number of steps to use and also use nice numbers for them. It must be able to take integers and doubles and be able to handle small ranges (under 1) and large rang...
Can someone help me with some code to check for duplicates in an NSArray for obective C. I did what I want in vb.net but the translation is hard for me.
'True means no duplicates'
Public Shared Function checkDuplicate(ByVal list As ArrayList) As [Boolean]
Dim [set] As New HashSet(Of Integer)
For i As Integer = 0 To list.Count - ...
Hey, I'm in WebKit setting my own script delegate using setScriptDebugDelegate. I'm trying to figure out what code is being parsed by the javascript interpreter in the willExecuteStatement function.
How do I figure out what statement is being executed?
Function prototype..
- (void)webView:(WebView *)webView willExecuteStatement:(id)fra...