Hi,
I try to bind a NSString value into my SQL query but its not working, and I don't know what I'm doing wrong.
Here is my query:
Select * from fiche where fichetype = 'EVENT' and sdate like '?%' ORDER BY cdate DESC
And I'm using this part of code to bind the value:
sqlite3_bind_text(getEventStatement, 1, [value UTF8String], -1, ...
I'm trying to improve performance for my application, and I'd like to change from the NSMutableArray I'm currently using to a dynamically allocated C array.
As a test, I've created this class:
In my class interface, I have:
MyObject *myObjectArray;
In my implementation, after the object has been initialised, I have another method to...
I am wanting something similar to how iWork has the template selection screen for Pages when you can select different templates, and each view contains different info has difference sizes etc.
I have tried subclassing NSCollectionView and determining which view to display using the newItemForRepresentedObject method (as opposed to using...
I am attempting to download a URL using NSURLDownload, but it does not start downloading. Before continuing it must be said that I am using GNUStep for this.
The outline of my project is as follows:
MyClass.h:
@interface MyClass : Object {
}
-(void)downloadDidBegin:(NSURLDownload*)download;
-(void)downloadDidFinish:(NSURLDownload*)d...
Hello, I am a beginner in this very confusing Objective-C game.
I would like to play a very short sound effect every time a certain button is pushed.
How can I do this?
Can I use an mp3 file? Or will I have to convert to wav?
Thankya
...
Hello all,
I have a UIViewController in which i have a UITextView added from interface builder.Now i want to push a view when i click on hyperlink or phone number. I am able to detect that which url is clicked using a method i found in stackoverflow. Here is the method
@interface UITextView (Override)
@end
@class WebView, WebFrame;
@pr...
I'm creating a draggable UIImageView much like the iPhone/iPod Touch's "Slide to Unlock" slider when the device is locked.
I can get the view to move smoothly along the x-axis by using: float newCenter = touchPoint.x;
But this doesn't take into account the offset of the touch from the center. It's simply moving the center point of the...
Hi,
I want to create an object of NSNotification as say:
NSNotification *obj=[[NSNotification alloc]init];
but when i create like this i get an exception as 'NSConcreteNotification init: is not allowed'.
How should i solve this problem?
...
Hello all,
I have a UITextView in which i have 5 hyperlinks and 5 phone numbers.How do i get all those hyperlinks and phone numbers in a NSarray?
...
I want to push the view from left side instead of right side.
RequestAndLoadViewController *controller=[[RequestAndLoadViewController alloc]init];
[self.navigationController pushViewController:controller animated:YES];
[controller release];
here we pushing the RequestAndLoadViewController from right side
...
I am fairly new to iphone development and programming in general and am wondering how to read some text from a text file to be diplayed in a UITextView. I have tried various ways to do it but just can't seem to be able to get it to display:
- (void)viewDidLoad {
[super viewDidLoad];
NSString *filePath=[[NSBundle mainBundle] pathForReso...
Hi,
When I fetch the source of any web page, no matter the encoding I use, I always end up with &# - characters (such as © or ®) instead of the actual characters themselves. This goes for foreign characters as well (such as åäö in swedish), which I have to parse from "Å" and such).
I'm using
+stringWithContentsOfUrl: encoding: e...
Afternoon, I have a UIImageView that I progmatically add to the window. Infact I have multiple UIImageViews that do so and when I click on any specific UIImageView I want it to become 'top-dog' so to say and be drawn over all other objects on the screen. Basically like the priority drawing for MSWindows operating systems when it comes to...
What is the best way of implementing a multi-line + multi-column text display?
HTML? Tables?
...
Ok, this is more of a 'What the hell is going on?' than an actual problem. But given my relative inexperience with C, it could alude to greater problems.
Basically, I'm parsing a wav file's header and grabbing out the values. In my header file I have the class variables defined:
short channels;
int sampleRate;
int bytesPerSecond;
short...
Hi, I was wondering if someone could please help me with this:
printf("Enter path for mount drive (/mnt/Projects) \n");
scanf("%s", &cMountDrivePath);
Is it possible to allow the user to simply press Enter and accept the default (in this case: /mnt/Projects)?
At present, if the user presses Enter, the cursor simply goes to the nex...
I have a question about tags for UIViews.
Is it possible to create your own tag like myview.tag="main" or something like that?
I'm asking because my views are created in code and not with a nib file. After the container view has loaded and an xml file is fully parsed I need to be able to get at the subviews and update values.
After a b...
Hello,
I would like to know how to create 512 bits integer and is there a lib for that ?
Thanks
Thierry
...
Right, basically I want to add two numbers together. It's for a working hours calculator and I've included parameters for a night shift scenario as an if statement. However, it now mucks up the day shift pattern. So I want to sort out that if the start time is below 12, then it'll revert to the original equation shown in the code instead...
I am currently working on a map-based iPhone application and wish to display some information to the user. For my application, it makes sense to have a setting of some sort where the user can choose Miles or Kilometers. Is there a built in mechanism (maybe similar to string localization) for doing this kind of value switching so that I...