Before the task finish r u sending another image to print. The error seems to be like this. In case of multiple images all images should be in a queue , First come first serve. Till one job is not done . another image should wait.
I am new to this forum, and new to programming, although I have already reached chapter 18
of Programming in C textbook.
Please, take a look at the program I typed in from the book, and warning messages I receive.
I would be grateful for explanation on what I am doing wrong. I work on Mac OS 10.7.5, Xcode 4.6.3,
1) I created a file with the command:
touch prog18-2.m// Program ot work with fractions - Objective-C version
printf("The numerator is %i, and teh denominator is %i\n", [my_fract numerator], [my_fract denominator]);
[my_fract free]; //frees the memory that was used by Fraction object
3) I compiled it with:
gcc -framework Foundation prog18-2.m -o prog18-2
4) Terminal generated the following:
prog18-2.m: In function ‘main’:
prog18-2.m:58: warning: ‘Fraction’ may not respond to ‘+new’
prog18-2.m:58: warning: (Messages without a matching method signature
prog18-2.m:58: warning: will be assumed to return ‘id’ and accept
prog18-2.m:58: warning: ‘...’ as arguments.)
prog18-2.m:71: warning: ‘Fraction’ may not respond to ‘-free’
I would like to limit the image taken to fixed size w=5 in and h=10 inch.
1. There is a way to display on screen (when taking the picture) frame in this size?
2. After taking the pic, how to enable moving the picture so the user can center the image in the 5x10 frame
I am working on XMPP based project. i am able to send message and it displays in conversation screen but when i receive message it only show in alertview not able to see in conversation screen. help me please.
Could be anywhere. You need to do some debugging for yourself and identify where things are going wrong. Then edit your question and add the detail to explain exactly what is or is not happening that should be. Also please put <pre></pre> tags around your code so people can read it clearly.
thanks for your replay. i am new in ios. can you please tell me how i check for received message? i have removed alertview from my didreceivemessage method and then i am not able to received message. i have updated my code of appdelegate.m file and method didreceivemessage. kindly replay. thanks .
Declare and set a variable called myName to your name
Declare two more string variables introduction and japaneseIntroduction both with an NSString type
Set introduction using stringWithFormat class method "My name is %@", myName
Set japanese introduction using stringByAppendingString instance method by appending " to moushimasu"
Print introduction and japanese introduction
Step 3: Define and call a new function
Declare a function called printIntroductions
The function should accept an NSString as a parameter called name
Cut and paste the introduction and japaneseIntroduction code inside of the new function
You should have errors for referencing 'myName'. Change any reference to 'myName' to 'name'.
This is an error of scope. You only declared 'myName' in your didFinishLaunching method. Not in your new method. In your new method, you declared an argument called 'name' that your function accepts when the method is called
In your didFinishLaunching method after you set myName call printIntroductions: and pass in 'myName' as an argument
It should print out the introduction and Japanese introduction
Step 4: Recurse through a function
Add a new function called countDownTillIntroduction: that accepts an integer called numberOfDays as an argument
The function should do the following:
Check to see if the numberOfDays is 0
If the number of days is 0, it should print "The time has come"
If numberOfDays is not 0
It should print "[numberOfDays] days left until introductions"
It should declare and set a variable oneLessDay and set it to numberOfDays - 1
It should then call countDownTillIntroduction and pass in oneLessDay
In the didFinishLaunching method before you call printIntroductions call countDownTillIntroduction and pass in 4
OUTPUT: You should see it print "4 days left until introductions", "3 days left until introductions" (down to 1) and then it should print "The time has come" and "My name is [yourName]", "[yourName] to moushimasu"
What is your expectation here? Do you want someone to write that program for you? That will not happen. You should try it yourself and if you then run into a specific problem, come back, ask a specific question and probably someone can help you with that.
Is it possible to design an iPad app that launches Safari, waits until a dialog box appears in Safari and then activates a button. Waits until another dialog box appears and then automatically completes the username and password in Safari and finally the app closes itself?
I cannot use Autofill as the website that Safari has accessed does not allow saving passwords. An analogy would be Safari automatically connecting to one's banks website that does not allow saving username and passwords.
This is an app I am trying to develop for visually impaired people for easy login access to the local library.
To the best of my knowledge the short answer is no.
If it were possible then I highly doubt that you would be able to get this released into the Store because of the privacy concerns that something like this could create.
Though of course you will have the issue of passing passwords as free text via the url. Definitely requires some more more thought but alas that is for another thread.
I'm trying to make a pretty simple frontend program that's able to start up a java program when it's run, but haven't yet mastered OC. Someone suggested that I try using a console command (code below), but I haven't been able to make that work yet.
Is there an easier way to do this, or does any one here know where my code has gone wrong?