I have a one-to-many relationship where each department has many employees. When I create a new employee object I just link it to the parent department manually by setting the property to the instance of the department I have fetched from my fetch request. However, this seems to be improper because when I try to access the set of employ...
I'm have a map view with a number of annotations on it... once the callout is clicked, i need to pass several parameters to the DetailViewController, so ive been trying to do this through the constructor. I've debugged a bit and discovered that the arguments are being passed properly and are being received as expected within the constru...
I'm having this issue where doxygen is adding the method twice in the documentation file. Is there a setting that stops auto-generation of documentation for methods within the .m file.
For example in the documentation I'll see something like whats below where
the first definition of + (Status *)registerUser is from the header XXXXXX.h...
I would like to develop a reader app for viewing and manipulating proprietary format documents. The documents are 2D. (Might add some cool page flip effects) The interface is similar to that of mobile safari. I'm trying to decide whether to write this in Quartz2D or OpenGL ES. I have no prior experience with either of those. Any suggesti...
Hi
I have defined a class that does a lengthy task and I call it from several other classes. Now I want to show an Activity Indicator while this task is doing it's thing, and then remove it once it's done. Since this is just a boring background task, this class doesn't have a view, and I guess that is where I run into my problem. I can'...
Hi all,
I'm trying to incorporate some Gravatar functionality using its XML-RPC API in an iPhone app I'm writing. I grabbed the Cocoa XML-RPC Framework by Eric Czarny (http://github.com/eczarny/xmlrpc) and it works well when I tested it with some of the Wordpress methods. However, when I try to use the Gravatar API, I always receive a...
I am trying to figure out how to create an 'if' statement that uses a time value as a condition. For example:
if (time <= 10:00) {
score = 3;
} else if (time <= 20:00) {
score = 5;
} else {
score = 9;
}
I know that a string of "5:23" cannot be compared this way but I don't think I can just turn a string value l...
I am writing an iPhone app which will start with asking the user to register with a login/passwd. These should be :
Saved securely locally
Send securely to a remote web-server
What do I need to achieve the above? Say, for local storage, shall I save them in a file or database? Shall I encrypt it? For sending it over, is HTTPS suffici...
Hi Guys,
I got leaks in Lib Xml Parser while retrieving the data from the net,
Here in the below code, I have allocated the list
- (void)getCustomersList
{
// make an operation so we can push it into the queue
SEL method = @selector(parseForData);
NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:self selector...
Hi all,
I have created a UIWebView using interface builder.
When I load the webview with loadRequest method, I get an error as below
"<Error>: CGImageSourceGetType image source parameter is nil"
What is this error due to ??
Thanks.
...
Does code like this (potentially) violate the iPhone Developer License Agreement?
Class clazz = NSClassFromString(@"WNEntity");
id entity = [clazz entityWithImage:@"Icon.png"];
SEL setPositionSelector = NSSelectorFromString(@"setPosition:");
objc_msgSend(entity, setPositionSelector, CGPointMake(200, 100));
I'm working on code that dyn...
hello all
what means a word "USING" in declaration of @protocol
the declaration is
@protocol name
USING
// declaration of methods
@end
thank for all conributters
...
I have a table where there will often be two cells with the same title. I'm zooming in on a map whenever a cell in the table is clicked, so using the title as a unique identifier is out of the question. I already have a unique identifier, but I need to find a way to store it in a UITableViewCell object.
I have been considering two opt...
I know the basics of this methods,procedures,function and classes but i always confuse to differentiate among those in contrast of Object oriented programming so please can any body tell me the difference among those with simple examples ?
...
Hi Guys,
I getting the leak in this method even the allocated nsstring is released.
Now I am taken stringWithFormat, but still it is showing the leak at "NSData *returnData=...." line
-(BOOL)getTicket:(NSString*)userName passWord:(NSString*)aPassword isLogin:(BOOL)isLogin
{
NSString* str=@"";
if (isLogin == YES)
{
str =[NSString strin...
Hi,
I am using the this code in my iPhone application:
UIButton * MyButton=[UIButton ButtonWithType:UIButtonTypeRoundRect]retain];
If I don't use this retain will my app crash? What is the function of this retain?
...
I have a Cocoa application which uses an installer. I want to be able to run code coverage over the code (after it has been installed).
This is not the usual unit-test scenario where a single binary will run a suite of tests. Rather, the tests in question will interact with the UI and the app back-end whilst it is running, so I ideally ...
I'm in my second day of learning Objective-C, Cocoa and IB. This is probably something really simple but I cannot work it out.
Basically, I have a form with a NSTextField, when the user types in this field and clicks an OK button the application will display an alert saying Hello followed by the value of text field.
It's all working ap...
Hi
I accidentally deleted my sdk 3.0 directory, thinking I didn't need it.
Now when I launch and compile a project it says that my base sdk is missing.
Where can I download the 3.0 sdk? All that is available in Dev Center are the 3.2 and 4 beta sdks?
...
Hey,
Does anyone know of a good steganography library I can use thats written in C or Objective-C? It would need to be used in a Mac OS X application.
...