i have two different classes with named indexViewController and flashCardQuestionViewController.
in the index view controller i have table filled with an array.
now i am getting some data from the database..
-(void)getMultipleChoiceAnswer
{
if(optionid!=nil)
[optionid removeAllObjects];
else
optionid = [[NSMutableArray alloc] ...
I'm just wondering how I might do this and hoping that somebody has done something similar. I would like for a sprite to scale as the finger remains on the screen. Any tips, general guidelines, or methods I could look at would be appreciated.
...
Let's say we have a first Object 'Controller' and it initializes another object named 'Tasks' while passing 'self' for reference. Tasks object can now communicate and send messages to the super 'Controller' object. Is this correct for communicating between objects? Is this how its usually done? I've just started to really learn about pro...
How to convert NSString to Integer...
i mean.
NSString *one=@"1";
i want to get this value like this.. int t=1;
is it possible..?
pls help me thanks and regards... by raju
...
How can I create an NSArray with values prepopulated.
That is to say:
NSArray *name=[NSArray alloc];
// insert these values: raju, biju.ramu
Thanks and regards from raju..
...
I'm attempting to implement a feature where a user can select some text in a WebView and, after releasing the mouse button, a small window will pop up to allow the user to perform some operations on the selected text.
However, I'm running into some trouble with determining when the user's selection has been "confirmed", for lack of a be...
I have a Cocoa app with an NSTextView control which holds its text in an NSAttributedString (actually I believe it's a NSMutableAttributedString). I can easily set and modify different text attributes (such as font, underline, etc.) on different character ranges inside that string.
However, I want to set a part of the text as hidden (si...
how to compare two date in objective c
that is . i have two date..
2009-05-11 and current-date
i want check the given date is current-date or not...
how it is possible...
pls help me detailed ..
thanks and regards .. by raju..
...
I have a class that communicates with a web service and is used throughout the app. What I am looking for is a way to display an Error message in a UIActionSheet on top of what ever view the user is in. Is there an easy way to do this? I would like to avoid call back methods in every view if at all possible.
...
Hello, is it possible to record the sound in iPhone 2.1 and then attache it in mail? I have to record any sound on one button click. Please help for that.
...
Hi all,
I am trying to perform the following tasks with files, but I am stuck.
Here is the code:
NSString* aStr = @"Hello World!";
NSData* aData;
aData = [aStr dataUsingEncoding: NSASCIIStringEncoding];
NSFileManager *fileManager = [NSFileManager defaultManager];
//destination is NSString which Contains the absolute address
if ([f...
I need a good reference in how to get my hooks into Darwin. Basically I'd like to write an app the take care of some of the admin chores I do on my Macs. For example, moving new media to the backup server sorted by media type, pulling process info. Simple things like that. So basically I'd like to create a nifty GUI app that would call m...
I am making my way thru the Hilgrass and Kochan books. Doing my own experiments to further my learning I simply want to create a cocoa interface with 4 textfields, 3 that accept numbers and the 4th that displays the sum of the other 3. I can do this using a button to do the calculation however what I want to do is have it autoupdate any ...
Greetings - I am trying to set and store values in memory... and be able to share them between classes. I've tried two different methods with not too much luck -- one with 'dot' syntax and one with [].
Generally: In class1 I have something like this:
#import <Foundation/Foundation.h>
@class Class1;
@interface Class1 : NSObject {
...
I have a lot of shared C++ code that I'd like to use in my iPhone app. I added the .cpp and .h files to my Xcode project and used the classes in my Objective-C++ code. The project compiles fine with 0 errors or warnings.
However, when I run it in the simulator I get the following error when I attempt to access an STL method in my obje...
Hi All!!
M stuck M trying to create an UIImage from a byte array which i get from a webservice.It comes embedded in a XML.I can parse the XML and get the byte array as a string.Then I convert the byte array (which is in NSString) to NSData. This is the code for that:-
Image_Content = currentElementValue;
NSData* aDataImage;
aData...
I'm getting a XML containing image which is base64 encoded.I've to decode that & need to display a image.Any suggestions.............
...
I'm looking for an easy way to parse VCALENDAR data with objective-c. Specifically all I am concerned with is the FREEBUSY data (See below):
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REPLY
PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
BEGIN:VFREEBUSY
UID:XYZ-DONT-CARE
DTSTART:20090605T070000Z
DTEND:20090606T070000Z
ATTENDEE:/principals/...
So I've read most of the Jeff LaMarche book, and I still can't seem to understand this...
How do I persist data between various views? For instance, with a standard 'Utility Application' template, I want to be able to share variables between the frontside and the flipside... How to do?
(I also want to write those variables to disk so t...
Hi guys,
My application crashes on this line
[NSThread detachNewThreadSelector: @selector(getJSON:) toTarget:self withObject:nil];
Here is how the getJSON funciton looks like:
- (void)getJSON: (NSDate *)startTime endTime:(NSDate *)endTime;
What it the problem?
...