364 Topics
![]() | |
how to get the codes for music player in objective c | |
I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this? switch(textField){ case 'someCase': // do something break; default: // do something else break; } Considering I already created an outlet for it in the @interface … | |
I'm sorry. These question probably sound very stupid to you people. But to me they are extremely difficult. Imagine being completely ignorant with computers, and signing up for an intermediate level class (I did not take the beginner class)................ and NEEDING an A to make up for the 2 B's … | |
Sorry if this is the wrong place or something, but I saw a question in here on PHP vs ASP.NET, which made me think it might be. On the other hand, I also saw posts asking about people's breakfast, so I don't really know... Users are already starting to embrace … | |
Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField … | |
Hello! My name is Page, and I am still in the process of becoming a more seasoned programmer. I am trying to get a .txt file with first names in it to be sorted after I read the file and input it to a array from a function. Now I … | |
Hi , i would like to include a normal conventiional function in to my obcetive c project. I have tried putting the body of the function outside the implementation section , inside the @implemenation section. I know it wont be part of the class i'm defining , but do i … | |
I had an exam in database. during the tutorials we were instructed to create a query and run it. The exam question only asked to create a query. I did just that n got it wrong. Would u say that a create query question always expects the query to run? … | |
models.py class Settings(models.Model): date_format = models.CharField('Date format', max_length=100) time_format = models.CharField('Time format', max_length=100) views.py for saving the date and time format in database as boolean. def date_format(request): settings = Settings.objects.get(user=request.user) settingsForm = SettingsForm(instance=settings) if request.method =='POST': settingsForm = SettingsForm(request.POST,instance=settings) if (settingsForm.is_valid()): settings=settingsForm.save() return redirect('/member/follow-up/') return render_to_response( 'incident/date_format.html', { 'about_menu': True, … | |
Hello DaniWeb, i recently began reading a book called programming in Objective-c by Kochan 5th edition, One thing i havent gotten the grasp on is Properties and WHEN to use them or if they are even usable on such a simple test program such as in a coffeeShop class for … | |
I am getting an iphone soon and would like to write some programs for it using c++, I know all about apple and objective c but I want to use C++, as I am more skilled in C++. So is there a compiler out there that will enable me to … | |
From an exercise in a cocoa programming book I'm trying to make a to do list app that simply adds, removes and change the entries in the table. I have a lot of things wrong with it. relevant info: * add button: add entry with text from text field. If … | |
Hello daniWeb, i have a question, i am trying to implement a live Ticker for my iOS app but i am stuck in a very frustating situation. So my app should have live internet connection to connect to a sever which has a ticker that Updates continuosly. So here is … | |
I'm going through an exercise in a mac programming in cocoa book, where there is a GUI and from a textfield I enter and to a list of strings displayed on a table. There are plenty of things that aren't working, the most confusing of which is I keep leaking … | |
I would like to know what is the difference between dot notation and using square bracket. | |
1. I see %f is for float, %@ is for string. Is %d for anything? Which % is for double? Which % is for BOOL? 2. What is the different between double and float? When I put float flow=-8.1234567890123456789; //4 bytes floating point double dobble=-8.1234567890123456789; //8 bytes floating point NSLog(@"flow … | |
How do I find the length of an NSMutableArray? | |
This code gives me the error message "warning: passing argument 1 of 'stringWithCString:encoding:' makes pointer from integer without a cast" #import <Cocoa/Cocoa.h> #import <Foundation/NSObject.h> #import <stdio.h> //#import <string.h> @interface Numbers : NSObject { NSString *name; int age; NSMutableArray *list; } //-(void) setName; -(void) setAge :(int)a; @end @implementation Numbers -(void) setName{ … | |
Hello, I have learned some basic Java, but now I want to learn Objective-C. Is there a tutorial or problem set of programs to make that I can follow to quickly learn the basics? Here is what I know how to do so far... #import <Foundation/Foundation.h> int main (int argc, … | |
Lab Assignment 1 - A Simple UNIX Shell Objectives: The objective of this assignment is to understand the workings of a command-line interface (CLI) and to obtain a working knowledge of process forking and signalling. Assignment: In this assignment we will build a command shell in stages. Our command shell … | |
Hello all, I have a MKMapView that is having a very strange problem which is kind of hard to explain. I have an MKOverlay that is saved between sessions by saving the points of the overlay to a file and loading the overlay in viewDidLoad. So here's the problem: Steps … | |
What I am trying to find out is how to securely send a username and password to an API. Basically I am accessing a restful API using a URL like "https://myapi.com/api/username=test&password=test123". If the username and password are correct the API will return a JSON page. How would I go about … | |
hi, i have sent you already text for objective c tutorial, but unfortunately i didn't get any reply from you. if you send me objective C tutorial i would grateful to you. Thanks Antor | |
hi, i need objective c language tutorial. i hope i will get from you. Thanks Antor | |
Hi I'm in need of some help here please. What i need the app to do. I'm trying to create an iPhone app. What i'm trying to do is get the iPhone camera to scan 2 letters and 6 numbers (e.g. JH847593) then send that id number off to a … | |
hi friends is there any way to get remainder for **flaoating variables** in C programming?? | |
hey there, I´m working on xCode, and theres a problem i don´t know how to solve it. in my main.m funktion is a error: thread 1: signal SIGABRT int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); <---- thread 1: signal SIGABRT } } could … | |
At first, I have "C:/test02.txt" too good positive a film for stunt scheduling i think objective My codes with open('C:/test01.txt') as words: ws = words.read().splitlines() with open('C:/test02.txt') as file_modify4: for x in file_modify4: sx = map(str.strip, x.split("\t")) ssx = sx[0].split(" ") ## list for w in ssx: if w in … | |
I have a NSView subclass TimeCircle which is the controller of my custom view. In TimeCircle there are several drawings taking place depending on the state of button butStart which is toogle type. The button is connected correctly to TimeCircle. I have the problem that I can´t get **[butStart state]** … | |
![]() | Hi, I want to declare a float[] in .h and initialize in .m as explained below: .h file ` @interface A: NSObject { float data[10]; } @end ` .m file @implementation A -(void) loadData{ data={1,2,3,4,5,6,7,8,9,10};//Does not work } @end I could have intialized in the following manner, but Could it … |
I have been walking through the tutorial "second ios app" on apple's developer website and I am getting a warning from the code that is implemented in the "Get the User's Input" section at the bottom of this link https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/CreatingAddView/CreatingAddView.html#//apple_ref/doc/uid/TP40011318-CH6-SW1 In the implementation of the done method there is the … | |
NavigationController.h #import <UIKit/UIKit.h> @protocol NavigationControllerDelegate; @interface NavigationController : UINavigationController<UINavigationControllerDelegate> @property (nonatomic , assign)id<NavigationControllerDelegate , UINavigationControllerDelegate> delegate; -(void)cancelImagePicker:(id)sender; @end @protocol NavigationControllerDelegate <NSObject> - (void)mediaPickerController:(NavigationController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info; - (void)mediaPickerControllerDidCancel:(NavigationController *)picker; @end NavigationController.m #import "NavigationController.h" #import "DataViewController.h" @interface NavigationController () @end @implementation NavigationController @synthesize delegate; -(id)init{ UIViewController *controller = [[DataViewController alloc]initWithNibName:@"DataViewController" bundle:nil]; … | |
ok, im working on an assignment implementing a circular queue (fixed size 15), shared memory, normal producer consumer problem, using three semaphores (one for the queue and one for each process). The objective is to have the producer put the characters from mytest.dat (max 150 chars) into a circular queue, … | |
I need to write a program (using Dev-C++) which can count the number of hyperlinks of a given web page. The main objective is to practice socket programming and try to use HTTP protocol. I am not sure exactly how to go about doing this. Can anyone help me figure … | |
[B]Hello programming experts,[/B] I have a problem. Is it possible to make an OS with VB.Net with C, C++, Objective C, Assembly language, FreeBASIC, C#, BASIC, Java, Object Pascal and with a bit of machine language? And if possible how to mix the languages? And could you give me a … | |
Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am … | |
I am working on an assignment for my C++ course, and could really use some help with the following problem: **Instructions: 1. In this assignment we are going to write an object oriented program to calculate provincial tax, federal tax and net income. Your objective is to design a class … | |
#include<stdio.h> #include<string.h> typedef struct { char name[20]; long int ptn; float lt; }census; int main() { int i,n; census city[10]; printf("How many cities\n"); scanf("%d",&n); for(i=0;i<n;i++) { census city[10]; printf("Name:"); gets(city[i].name); printf("\nPopulation:"); scanf("%ld",&city[i].ptn); printf("\nlteracy:"); scanf("%f",&city[i].lt); } } | |
what is the iPhone iOS SpringBoard? Please explain in detail. | |
Newbie Question: Does NSString's instance method(s) initWith... return an autoreleased object or does receiver take ownership? - (id) initWithFormat: arguments | |
I'm having a little difficulty, trying to transition from c++ to objective-c. I tried to write a fairly simple Fibbonacci sequence computer, which I usually write to familiarize myself with new languages. Unfortunately, it doesn't work. I keep getting errors related to either comparison between an int and a pointer, … | |
I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS. | |
Hello all, I'm new to programming in Objective-C and have some C++ under my belt. As one of my first programs, I'm trying to make a fairly simple app that can record the user's heart rate. I made a class to store all of this information in (called HeartRate), from … | |
I have my app running with 2 annotations for now. They are hardcoded in with latitude and longitude. How do I make it so that I let the user add annotations by dropping a pin where they wish and for my app to recognize this and save where they drop … | |
I have written the following code for Towers of Hanoi problem using non recursive approach. I guess it is not correct as the number of moves are not 2*n - 1, for eg, for 3 disks to be moved, it has to generate 7 moves. Thanks in advance. ###################### # … | |
I have been trying to follow along with the tutorial on Apple's developer website: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/Introduction/Introduction.html but cannot figure out why my project will not run. I have one warning: Incomplete implementation in the BirdSightingDataController.m file: #import "BirdSightingDataController.h" #import "BirdSighting.h" @interface BirdSightingDataController () - (void)initializeDefaultDataList; @end @implementation BirdSightingDataController @synthesize masterBirdSightingList = … | |
Hi all, I have givn a task to implement a game. It has ruls of texa's Holdem poker and the objective is to make words like scabble.So it is a blend of these 2 games. So i need to store (Only with 5 letters)words(I dont know whether it is a … | |
I've been at this for hours - I am trying to display a barcode font in a label. Sounds simple but apparently isn't. I've added the font ttf to the project and added it to the UIAppFont array in the project p-list but the text appears normally (defaults to the … | |
Hi guys, I'm playing with storyboards and have managed to construct the fallowing based off a tutorial.... My delegate header file #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (nonatomic, retain) IBOutlet UITextView *label; -(IBAction) my_btn:(id) sender; @end implementation file -(IBAction) my_btn:(id) sender { self.label.text = @"updated!"; } Now with the … | |
I've been given a homework assignment in which I have to create a linked list, then store 25 random integers within it, after I've stored the values I have to find the sum of these 25 numbers, and then the floating point average of them. So for the most part … |
The End.