I have create a class from a string, check it is valid and then check if it responds to a particular method. If it does then I call the method. It all works fine, except I get an annoying compiler warning: "warning: no '-setCurrentID:' method found". Am I doing something wrong here? Is there anyway to tell the compiler all is ok and ...
Hi Guys,
I am getting a problem which I could not able to spot where it was...
My problem is Im having a textfield in the controller and when I am changing the text in the textfield the setter for particular object is calling which is not related to this textfield.
My code for this is:
This is the setter which was calling when changi...
Hi,
I will like to do some kind of forwarding in my mixed C++/ObjC project.
My logic is in C++, and I want to provide a method that belongs to a C++ object instance as a selector to objC. Is there anyway to do this?
Mainly the question is, Is there anyway to fake a C++ method into a selector :), to give it to ObjC and let it be called...
Hey!
I am planning on developing an iPhone App for a website, powered by Wordpress.
Where can/should I start codewise when developing an app for such sites?
Should I use Wordpress' API, or should I access the (MySQL) database directly?
I am very open for ideas.
Thank you.
...
I have a quick question regarding memory management that I am not quite sure about. I currently have a locationManager delegate that calls locationManager:didUpdateToLocation:fromLocation where it resolves the device location. My question is I am looking at adding ReverseGeoCoding after I have obtained the [newLocation coordinate] but am...
Hi Guys,
I am getting leaks in Master view controller of iPhone.
When I call this method, I am inserting them into filteredListCount array, because when I search I need to show the list from filteredListCount array otherwise customerArray.
This functionality is working fine but I am getting leaks in the method below at allocation: fil...
When i try to update a data after searching another the data is overwritten on the last searched data. i tried to release the previous data still same problem persists. how do i solve this?
...
Is it generally valid that a macro is used to create a method name? I mean...actually it's just simple text replacement before the compiler actually runs, right?
...
Hi,
the last days I tried to create an UITabBarItem as UIImage. But I only get a white square. I tried to use a png 8, png 24, gif and jpg. The image will be fond becaus if I change the image to a bigger one the white square also will be bigger.
This is my Code:
UIBarButtonItem *selectFeed_3 = [[UIBarButtonItem alloc]
...
Example: I want to do this:
METHODNAME(5) {
// do something
}
which results in:
- (void)animationStep5 {
// do something
}
Is there any way to do this? Basically, what I need is a way to generate a real source code string before the program is compiled, so the compiler does see - (void)animationStep5...
Or maybe there's ...
How do I store/retrieve an NSMutableArray of objects? The easy / fast way please. Thanks!
...
Hi,
I want to build a selector from a class method.
I'm doing it this way:
NavigationTreeActionHandler* handler=[NavigationTreeActionHandler self];
NavigationTreeNode* bombsNode=new NavigationTreeNode("Bombs","bigbomb.tif"
,handler,@selector(BigBombButtonPressed:));
I need to pass to NavigationTreeNode the target and the select...
Hi,
Is it possible to have the icons in a TabBar and / or the "More navigation controller" be in colors other than grey and black? I tried changing the color of the icon I set for the view controller using UITabBarItem's
- (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag
method.
My client thinks the inte...
Possible Duplicate:
Can you make an incrementing compiler constant?
Example: I try to do this:
static NSInteger stepNum = 1;
#define METHODNAME(i) -(void)step##i
#define STEP METHODNAME(stepNum++)
@implementation Test
STEP {
// do stuff...
[self nextFrame:@selector(step2) afterDelay:1];
}
STEP {
// do stuff.....
Require urgent help!:(
i m developing a game and i m dealing with around 20 images at the same time.
As per my knowledge, i m allocating and deallocating the images at right places.
Game runs for around 15 min fine but quits with an error message:
"Program received signal: “0”. warning: check_safe_call: could not restore current frame"...
For example, I have a huge switch control structure with a few hundred checks. They're an animation sequence, which is numbered from 0 to n.
Someone said I can't use variables with switch. What I need is something like:
NSInteger step = 0;
NSInteger i = 0;
switch (step) {
case i++:
// do stuff
break;
case i++:
// do stuff
...
My sqlite file has a size of 7MB. I want to reduce its size. How i can do that ? When am simply compressing it will come around only 1.2 MB. Can i compress my mydb.sqlite to a zip file ? If it is not possible, any other way to reduce size of my sqlite file ?
...
hi, I resently started programming in objc and I was wandering how can I use python code in an existing objc application. I found some threads in this site and some others but they didn't help me at all. What I want to do is to take the SpotlightAPI found in apple's developer website and use the results to process them with python code. ...
Hi everyone,
I have been working on a simple text editor in Cocoa/Objective-C for a practice project and I have come across an error that I would never have expected.
I have an NSString for my file's contents as well as an NSString for it's path. When I attempt to write the contents to a file, I use the following method:
[FileContents...
Updated : I got "cannot connect to iTune Store" alert after 6 minutes. Is it possible to set any time out value while inApp Purchase.
My InApp purchase code works fine in normal network, but in very slow network(safari browser will take 5 min to load a webpage). I am not getting any delegates...
- (void)requestDidFinish:(SKRequest *)re...