So this lesson is going to be actually a very simple lesson it's essentially about showing you how to
get help when you're doing your development.
Someone about Lexcorp index.
I'm going to go ahead and say how the command line tool how project.
My project I'm going to go ahead and say that I have some things such as in here I have to print hello
world and I have a class first class and my first class has a function called my function.
It doesn't take any palmettos returns a string and maybe it prints something and then returns right.
So these are all I have been here now and some of the things that you come across quite often is that
when you're doing something you're wondering.
So what does that teach me.
And you can use a combination of option and command buttons using a click to get a sense of that.
For instance I can go ahead in here and say if I had a variable called My object of that type of test
class I could go ahead and hold the ALT and over it.
And essentially it tells me it is being declared from the type of test class and it says that's the
declaration for it and it is declared in this file.
So if you are in a separate following wanted to find out where that is you could simply find it.
Another thing you could do you could hold the command by then and click on something and it says jump
to definition.
So essentially it takes you to where that team is being declared.
So that really helps that you know understand where different things are.
Also the command button on something like a string which is essentially a US thing is repeating itself.
I could say show me the quick help and tells me some basics of you know what I could do with that thing
it says hey here's an example of let the name be dot let price be that it's essentially the help of
the software which is in a much smaller window being shot inside the body of X court.
So even for the machine instructions such as a string and whatever you can still go to their definitions
just like all in here.
I could go head command and click and go to the definition.
I could go to the same thing for a string.
I could go to the of a string.
And this is a file that there are some engineered Apple has written and says Puplick airstrike the strange
IDE hasn't in its method.
It has loads and loads of comments about you know how it works and what you could do with it and what
not.
It's not always the easiest thing to read.
These definitions sometimes is helpful though.
Imagine I had done op.
I'm going to say I have a temp up and my temp app it does conform to you.
I text field delegate something we have seen in the past and you didn't want to go to the manual or
you kind of remember what you're looking for.
You can command and go to definition.
I ended the fiction I can simply look for this protocol says thanks.
When should begin a thing return to this slower thing takes fit did begin editing becomes first responder
and so on and so forth.
You can actually get a sense of what are the things that you can access in here.
In one of our upcoming lessons we will be dealing with a text view.
So for instance if this was a takes the view delegate could simply hold the command button click on
it and say quote the definition and the definition that says takes view should begin should and it did
begin with and and should change text in.
That's probably the one I want to use or text.
You did change so on and so forth.
Sometimes it helps to be able to go through the header files as you can imagine.
You cannot change this so I can't just go in here and say hey valuable something in between is.
It doesn't lead me simply because this is a piece of the core of the excluder core of the swift or objective
see if you will on that one.
There are ways for everything this but I would really recommend you do trying that unless you absolutely
know what you're doing otherwise.
In all fairness I haven't come across a situation that they needed to or that one of these.
Usually if you have to edit something like If you have to edit a text you delegate it which is a very
very very rare situation.
If you have to do it you have to essentially subclass it.
I have another protocol that conforms to this protocol and then make sure as it sort of modification
or whatever unit so that's a part of that.
Another thing about you know trying to get help beyond the use of clicking with alt or command is of
course using the using the Internet.
And I'm sure you all know it but just so that you know somebody is still wondering if you want to find
something you just say.
I was STK And then after that I was STK.
You either have to say objective c boy after say Swift and then whatever is your question how to generate
a random number and then the moment you know you run that you immediately end up with so many many many
solutions many of them they come from different websites.
In this one an making or net to go all over the world that is.
And many of them they come from a stack overflow S-type overflow or else or essentially is a is a perfect
place for learning for whatever you want to do and the moment you get in a question you get the related
questions as well you can actually look between those and find out which one really helps you with whatever
you want.
How does one make your random number between let's see if that's something that would help me.
It says that between Ranjith are for random uniform and then when you come to us type overflow these
are obviously the questions of whether there is an answer.
That is a little ticked mark in here.
This is the one that they have accepted as an answer.
And clearly this one produces the answer that the guy was looking to get the range of 1 to 6.
I don't do as I please know I have a lot of blah and then he says if anything the range between let's
say 10:30 let's just do this get something between that over whatever and said that you know what the
guy has provided.
There's so much side discussions in here in some of the links that I provided to you guys in different
lessons.
I have provided links to a stack overflow discussions because it hurts to see different perspectives
of different users and of course for any of these you might actually end up finding a tutorial as well.
I don't know if I think this is a tutorial by some gentleman arm Ranger if that's the right way of saying
his name and I would really suggest that you look at them not every tutorial is the best approach but
what it is is just another approach which helps you understand what you are trying to do and expands
your knowledge base.
You know even if it's something that you know how to do it in these areas they just try and have a look
at other people's ways because you will find better and better ways of doing things.
And I think that's about not for getting help from Google from a stack overflow and by finding the header
files and the definition files inside scored.
Let's move on.