I created a xcodeproject named ABC.xcodeproj and successfully build it. Later i have renamed it to XYZ.xcodeproj. Bt while building it shows error like this-
i686-apple-darwin9-gcc-4.2.1: /Volumes/Partition 2/Client/ABC/ABC_Prefix.pch: No such file or directory
i686-apple-darwin9-gcc-4.2.1: warning: '-x objective-c-header' after...
Hi,
In my app the functionality required is similar to "contact form". I want that user should be able to send email to me using that contact form.
Now the form should contain textFields for Subject and Message Body but the Recipient Email Address should be pre-fixed and should not be shown.As I dont want to disclose my email id to all...
Hi,
I have created a subclass of a UIView which is a rotating wheel. This wheel is part of another UIView which has an image in the top right corner.
When the wheel is turned, in the touchMoved function the right most item is returned (its number). I need to then change the parent's image automatically when the subview is turned (when ...
Hello All,
I have an object that holds a pointer to some malloced memory, when I come to dealloc the object I use the free command to free up the malloced memory, how ever the free command appears to be absolutely doing nothing and I'm getting large memory leaks as a result. I have confirmed that the dealloc command is being executed.
...
I have a Objective-C class that makes an HTTP request and, after receiving a response, calls methods on its delegate. The class provides some convenience methods around the built-in NSURLRequest for my application.
My question is: how do I ensure that I release this object? Normally, an object's owner is responsible for ensuring that a...
Hi,
I have seen this code in most of the time. Here there are two variable names defined and in the implementation it synthesizing by assigning. Whats the purpose of doing some thing like this? Like keeping 2 separate variable names. Is this sort of a convention?
Test.h
@interface Test {
id<something> _variable1;
}
@property (nona...
I have implemented a UITableView with search bar (and search display) - all works fine, but the table results do not get updated until the search bar cancel button is tapped.
Delegate methods:
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
// asynchronous request with [self.tableView reloadData] in the connectionD...
Hi.
i have created a custom NSView that displays an image.
i have created a property in Inspector view with binding to File's Owner.
Everything works fine in runtime image changing.
But nothing is loaded when i save and load xib file.
here is the simplified code:
IBDocument *document = [IBDocument documentForObject:self];
[self->defau...
Ok so I -roughly- want this code:
test1.m:
Foo *foo = [[Foo alloc] init];
foo.x = 1.0f;
[staticClass bar:*foo.x];
staticClass.m:
-(void)bar:(float *)argVar
{
*argVar += 1.0f;
}
So I'm pointing the argVar to a property of the Foo class. Obivously the current code doesn't work.
What's the proper syntax for/way to do this?
...
Hi,
I followed on some advice given on this very forum and I am still having difficulty
I have the following:
#import <UIKit/UIKit.h>
@protocol UIViewForWheelProtocol
- (void) returnImageNumber:(int)imgNum;
@end
#import <UIKit/UIKit.h>
#import "UIViewForWheelProtocol.h";
@interface UIViewForWheel : ...
I'm using Monotouch to develop an app for the iPhone.
In my iPhone only app, I have an InputAccessoryView appear whenever the user selects a textfield. The accessory view provides buttons which aid the user (undo/redo etc).
It works fantastically on the simulator and on iPhone devices.
However, out of the blue, the Input Accessory V...
Hi There,
I am geeting an error customTabBarController not a structure or union?
What the reason for this kind of error?
Many Thanks in advance for your help.
...
Hello there,
I am new to mac, and I am in trouble. I need to bind NSTableView to 2D data at the back end so that I can have dynamic update of data at the front end. I have 5*10 data at the back end that I want to bind it to NSTableView. I have tried almost every approach, read every article, implemented examples from the internet but it ...
I've created a prototype app which uploads a bunch of photos to a webserver. Everything works fine in the simulator. But when I want to try it on an actual device it does not find the images. I've included them under the resources group in Xcode. Anyone?
Best
–f
...
Is there any way I can change the Tab Bar Controller's color to something other than the default black? I know this isn't possible in IB, but perhaps maybe through code?
...
Hi! I'm working on the iPad app, In which I have to rotate a arrow in a circle by touch. But I'm facing problems in it. The problem is in the angle calculation to which the image must be rotate.
You can check it here .
I have to rotate the big red arrow image around the circle. Can anybody help me, How to get the angle of the touched ...
I am writing a framework and I have an object with a custom init method:
@implementation OSDatabase
@synthesize database;
// MEM
- (void)dealloc {
sqlite3_close(database);
[super dealloc];
}
// INIT
- (id)initWithDatabasePath:(NSString *)path error:(NSError **)error {
if (self = [super init]) {
if (!sqlite3_open_v2([path UT...
I think the heading itself says what i want to do?
Stil,let me clarify. I am right now working on an application where i have two dated in a format like :
"YYYY:MM:DD HH:MM:SS"
Using which i need to calculate difference between the both dates in the format :
HH:MM:SS
I searched in the wiki and also tried my luck but in vain...
hi all, I am new to core plot SDK, implemented core plot in my app. i need to restrict -ve part of graph. i.e always i will have +ve values for graph((1,1),(10,15),(20,15)).i need horizontal , vertical scrolling for +ve part only.So i want to restrict remaining 3 parts of graph. I tried in all ways help less, so posted here. if any one a...
I've been attempting to figure this out for a while now, but I'm up to a point where I can't seem to solve my problem from reading other Q&As. I'm trying to get the active UIViewController in a UINavigationController to send popViewController/pushViewController messages to the UINavigationController, but I cannot figure it out. I'm proba...