364 Topics

Member Avatar for
Member Avatar for shan4248
Member Avatar for pars99

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 …

Member Avatar for pars99
0
125
Member Avatar for cocopium

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 …

Member Avatar for Gonbe
0
290
Member Avatar for mgold

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 …

Member Avatar for james.lu.75491856
0
454
Member Avatar for pars99

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 …

Member Avatar for pars99
0
250
Member Avatar for ppotter3

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 …

Member Avatar for jawad.ikram
0
3K
Member Avatar for Beancounter5

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 …

Member Avatar for adams161
0
400
Member Avatar for Kimsheron

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? …

Member Avatar for ConsultRoland
-1
87
Member Avatar for Sivaram R

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, …

Member Avatar for ChrisPadgham
0
326
Member Avatar for Harvey_10

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 …

Member Avatar for ChrisPadgham
0
182
Member Avatar for MasterHacker110

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 …

Member Avatar for Schol-R-LEA
0
325
Member Avatar for dancks

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 …

Member Avatar for dancks
0
766
Member Avatar for Harvey_10

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 …

Member Avatar for dancks
0
138
Member Avatar for dancks

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 …

Member Avatar for dancks
0
291
Member Avatar for android45
Member Avatar for mptheapple11
0
201
Member Avatar for MareoRaft

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 …

Member Avatar for geojia
0
168
Member Avatar for MareoRaft
Member Avatar for MareoRaft

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{ …

Member Avatar for Moschops
0
140
Member Avatar for MareoRaft

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, …

Member Avatar for ChrisPadgham
0
202
Member Avatar for Akshay nand

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 …

Member Avatar for deltascrow
0
328
Member Avatar for shredder2794

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 …

0
177
Member Avatar for straylight

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 …

Member Avatar for joefazee
0
293
Member Avatar for antor

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

Member Avatar for deceptikon
0
113
Member Avatar for antor
Member Avatar for deceptikon
0
38
Member Avatar for Fluggey

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 …

0
133
Member Avatar for sunnyy221

hi friends is there any way to get remainder for **flaoating variables** in C programming??

Member Avatar for anjerodesu
0
76
Member Avatar for guest7772

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 …

0
73
Member Avatar for thanadaray

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 …

Member Avatar for Lucaci Andrew
0
133
Member Avatar for romi.hofmann.7

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]** …

0
70
Member Avatar for SamD34

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 …

Member Avatar for great_learner
0
344
Member Avatar for Dane2259

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 …

Member Avatar for Dane2259
0
133
Member Avatar for bipinbaglung

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]; …

0
104
Member Avatar for marc.punzirudu

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, …

Member Avatar for marc.punzirudu
0
2K
Member Avatar for IcyFire

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 …

Member Avatar for IcyFire
0
271
Member Avatar for earlybirdsean

[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 …

Member Avatar for almondjoy
0
377
Member Avatar for ppotter3

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 …

Member Avatar for magadascar
0
2K
Member Avatar for pennywise134

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 …

Member Avatar for starpro57
0
151
Member Avatar for chandan127

#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); } }

Member Avatar for Husbarn
0
71
Member Avatar for android45
Member Avatar for ChrisPadgham
0
95
Member Avatar for badboy11

Newbie Question: Does NSString's instance method(s) initWith... return an autoreleased object or does receiver take ownership? - (id) initWithFormat: arguments

Member Avatar for ChrisPadgham
0
72
Member Avatar for sinatra87

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, …

Member Avatar for sinatra87
0
395
Member Avatar for android45

I would like to know how do i find selected location coordinates, name & address using google maps service API in IOS.

Member Avatar for ChrisPadgham
0
75
Member Avatar for TheMorphinator

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 …

Member Avatar for ChrisPadgham
0
228
Member Avatar for simagen

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 …

0
105
Member Avatar for peterparker

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. ###################### # …

Member Avatar for peterparker
0
2K
Member Avatar for Dane2259

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 = …

Member Avatar for Dane2259
0
146
Member Avatar for coroll

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 …

Member Avatar for JamesCherrill
0
192
Member Avatar for hericles

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 …

Member Avatar for hericles
0
159
Member Avatar for Acidburn

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 …

Member Avatar for ChrisPadgham
0
121
Member Avatar for lxXTaCoXxl

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 …

Member Avatar for histrungalot
0
208

The End.