Re: running an external app
Re: running an external app
- Subject: Re: running an external app
- From: Wayne Packard <email@hidden>
- Date: Mon, 26 May 2008 21:45:06 -0700
On May 26, 2008, at 4:30 PM, Nathan wrote:
I'm going to get sick of saying this eventually... this project is
to learn, I've gone through one great tutorial already and I'm
waiting on cocoa programming for mac os x to arrive.
So if I use the exact line you just told me it will work? I will try
and understand that line in a moment.
Thanks!
I'm sure others on the list are already quite sick of pointing out
this type of thing, so I'll give it a shot.
Perhaps you should try a "Hello World" type application before asking
the group to write your more ambitious "learning" application for you
one line at a time.
How do you expect to learn anything if all you do is type random
characters into an editor, post the resulting compiler warnings to the
list and have someone here give you the exact line of code you need to
fix them. Where exactly does the learning come into that?
Some compiler warnings can be a bit vague, but the ones you posted are
crystal clear. The first one means the thing you're sending a message
to is wrong (note the inclusion of helpful words like "invalid
receiver"). You created a thing of type "bool" and then sent a
message to it. Why do you expect that to work? Do you know what a
bool(ean) is? Does Obj-C have a type called bool? If it did, would it
be likely to handle a message called "launchApplication"?
The second warning means the thing you're sending with the message is
wrong ("argument" is another way of saying "thing you're sending").
Does the documentation say that the method takes a C-style string
literal as a parameter? Does Objective-C have string literals that are
different from the normal C pointer to array of chars? How do you
specify these magic literals?
This stuff is all so basic that it's clear to everyone you do not have
the fundamental understanding of the language that would be necessary
if you wanted to do a learning project like the calculator you
mentioned. That's why they keep pointing you to introductory material.
You obviously need it.
wp
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden