1
00:00:00,810 --> 00:00:06,060
So this lesson is going to be actually a very simple lesson it's essentially about showing you how to

2
00:00:06,060 --> 00:00:08,920
get help when you're doing your development.

3
00:00:09,100 --> 00:00:11,750
Someone about Lexcorp index.

4
00:00:11,790 --> 00:00:18,150
I'm going to go ahead and say how the command line tool how project.

5
00:00:18,260 --> 00:00:28,890
My project I'm going to go ahead and say that I have some things such as in here I have to print hello

6
00:00:28,890 --> 00:00:40,180
world and I have a class first class and my first class has a function called my function.

7
00:00:40,180 --> 00:00:53,200
It doesn't take any palmettos returns a string and maybe it prints something and then returns right.

8
00:00:53,290 --> 00:00:58,740
So these are all I have been here now and some of the things that you come across quite often is that

9
00:00:58,740 --> 00:01:01,280
when you're doing something you're wondering.

10
00:01:01,440 --> 00:01:03,130
So what does that teach me.

11
00:01:03,150 --> 00:01:09,330
And you can use a combination of option and command buttons using a click to get a sense of that.

12
00:01:09,330 --> 00:01:18,240
For instance I can go ahead in here and say if I had a variable called My object of that type of test

13
00:01:18,240 --> 00:01:23,150
class I could go ahead and hold the ALT and over it.

14
00:01:23,250 --> 00:01:31,560
And essentially it tells me it is being declared from the type of test class and it says that's the

15
00:01:31,560 --> 00:01:35,300
declaration for it and it is declared in this file.

16
00:01:35,400 --> 00:01:40,270
So if you are in a separate following wanted to find out where that is you could simply find it.

17
00:01:40,490 --> 00:01:45,420
Another thing you could do you could hold the command by then and click on something and it says jump

18
00:01:45,420 --> 00:01:46,500
to definition.

19
00:01:46,560 --> 00:01:51,890
So essentially it takes you to where that team is being declared.

20
00:01:51,930 --> 00:01:57,030
So that really helps that you know understand where different things are.

21
00:01:57,180 --> 00:02:04,570
Also the command button on something like a string which is essentially a US thing is repeating itself.

22
00:02:04,740 --> 00:02:11,240
I could say show me the quick help and tells me some basics of you know what I could do with that thing

23
00:02:11,250 --> 00:02:18,000
it says hey here's an example of let the name be dot let price be that it's essentially the help of

24
00:02:18,000 --> 00:02:24,300
the software which is in a much smaller window being shot inside the body of X court.

25
00:02:24,300 --> 00:02:31,800
So even for the machine instructions such as a string and whatever you can still go to their definitions

26
00:02:31,800 --> 00:02:33,000
just like all in here.

27
00:02:33,000 --> 00:02:36,980
I could go head command and click and go to the definition.

28
00:02:37,140 --> 00:02:39,740
I could go to the same thing for a string.

29
00:02:39,880 --> 00:02:41,890
I could go to the of a string.

30
00:02:42,030 --> 00:02:47,880
And this is a file that there are some engineered Apple has written and says Puplick airstrike the strange

31
00:02:48,260 --> 00:02:50,050
IDE hasn't in its method.

32
00:02:50,060 --> 00:02:56,240
It has loads and loads of comments about you know how it works and what you could do with it and what

33
00:02:56,240 --> 00:02:56,740
not.

34
00:02:56,940 --> 00:02:59,540
It's not always the easiest thing to read.

35
00:02:59,580 --> 00:03:02,590
These definitions sometimes is helpful though.

36
00:03:02,610 --> 00:03:04,500
Imagine I had done op.

37
00:03:04,590 --> 00:03:15,190
I'm going to say I have a temp up and my temp app it does conform to you.

38
00:03:15,190 --> 00:03:22,050
I text field delegate something we have seen in the past and you didn't want to go to the manual or

39
00:03:22,070 --> 00:03:24,860
you kind of remember what you're looking for.

40
00:03:24,960 --> 00:03:27,730
You can command and go to definition.

41
00:03:27,950 --> 00:03:31,630
I ended the fiction I can simply look for this protocol says thanks.

42
00:03:31,640 --> 00:03:38,530
When should begin a thing return to this slower thing takes fit did begin editing becomes first responder

43
00:03:38,530 --> 00:03:40,480
and so on and so forth.

44
00:03:40,490 --> 00:03:44,580
You can actually get a sense of what are the things that you can access in here.

45
00:03:44,810 --> 00:03:49,490
In one of our upcoming lessons we will be dealing with a text view.

46
00:03:49,500 --> 00:03:56,960
So for instance if this was a takes the view delegate could simply hold the command button click on

47
00:03:56,960 --> 00:04:04,280
it and say quote the definition and the definition that says takes view should begin should and it did

48
00:04:04,280 --> 00:04:08,930
begin with and and should change text in.

49
00:04:08,930 --> 00:04:11,950
That's probably the one I want to use or text.

50
00:04:11,950 --> 00:04:14,550
You did change so on and so forth.

51
00:04:14,570 --> 00:04:19,040
Sometimes it helps to be able to go through the header files as you can imagine.

52
00:04:19,040 --> 00:04:24,830
You cannot change this so I can't just go in here and say hey valuable something in between is.

53
00:04:24,950 --> 00:04:32,640
It doesn't lead me simply because this is a piece of the core of the excluder core of the swift or objective

54
00:04:32,650 --> 00:04:34,730
see if you will on that one.

55
00:04:34,730 --> 00:04:40,490
There are ways for everything this but I would really recommend you do trying that unless you absolutely

56
00:04:40,490 --> 00:04:43,140
know what you're doing otherwise.

57
00:04:43,310 --> 00:04:47,960
In all fairness I haven't come across a situation that they needed to or that one of these.

58
00:04:48,020 --> 00:04:54,680
Usually if you have to edit something like If you have to edit a text you delegate it which is a very

59
00:04:54,680 --> 00:04:56,620
very very rare situation.

60
00:04:56,690 --> 00:05:00,600
If you have to do it you have to essentially subclass it.

61
00:05:00,610 --> 00:05:07,340
I have another protocol that conforms to this protocol and then make sure as it sort of modification

62
00:05:07,340 --> 00:05:10,950
or whatever unit so that's a part of that.

63
00:05:10,950 --> 00:05:17,990
Another thing about you know trying to get help beyond the use of clicking with alt or command is of

64
00:05:17,990 --> 00:05:20,470
course using the using the Internet.

65
00:05:20,560 --> 00:05:27,230
And I'm sure you all know it but just so that you know somebody is still wondering if you want to find

66
00:05:27,230 --> 00:05:28,270
something you just say.

67
00:05:28,280 --> 00:05:32,110
I was STK And then after that I was STK.

68
00:05:32,150 --> 00:05:40,010
You either have to say objective c boy after say Swift and then whatever is your question how to generate

69
00:05:40,070 --> 00:05:47,420
a random number and then the moment you know you run that you immediately end up with so many many many

70
00:05:47,420 --> 00:05:51,400
solutions many of them they come from different websites.

71
00:05:51,410 --> 00:05:57,580
In this one an making or net to go all over the world that is.

72
00:05:57,710 --> 00:06:05,030
And many of them they come from a stack overflow S-type overflow or else or essentially is a is a perfect

73
00:06:05,030 --> 00:06:10,910
place for learning for whatever you want to do and the moment you get in a question you get the related

74
00:06:10,910 --> 00:06:16,970
questions as well you can actually look between those and find out which one really helps you with whatever

75
00:06:17,000 --> 00:06:18,100
you want.

76
00:06:18,370 --> 00:06:24,120
How does one make your random number between let's see if that's something that would help me.

77
00:06:24,120 --> 00:06:30,860
It says that between Ranjith are for random uniform and then when you come to us type overflow these

78
00:06:30,860 --> 00:06:33,680
are obviously the questions of whether there is an answer.

79
00:06:33,680 --> 00:06:36,130
That is a little ticked mark in here.

80
00:06:36,260 --> 00:06:39,510
This is the one that they have accepted as an answer.

81
00:06:39,710 --> 00:06:46,500
And clearly this one produces the answer that the guy was looking to get the range of 1 to 6.

82
00:06:46,610 --> 00:06:51,700
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

83
00:06:51,710 --> 00:06:57,360
say 10:30 let's just do this get something between that over whatever and said that you know what the

84
00:06:57,350 --> 00:06:58,810
guy has provided.

85
00:06:58,910 --> 00:07:05,770
There's so much side discussions in here in some of the links that I provided to you guys in different

86
00:07:05,940 --> 00:07:06,800
lessons.

87
00:07:06,860 --> 00:07:12,290
I have provided links to a stack overflow discussions because it hurts to see different perspectives

88
00:07:12,290 --> 00:07:18,760
of different users and of course for any of these you might actually end up finding a tutorial as well.

89
00:07:19,130 --> 00:07:25,850
I don't know if I think this is a tutorial by some gentleman arm Ranger if that's the right way of saying

90
00:07:25,850 --> 00:07:33,260
his name and I would really suggest that you look at them not every tutorial is the best approach but

91
00:07:33,260 --> 00:07:39,170
what it is is just another approach which helps you understand what you are trying to do and expands

92
00:07:39,170 --> 00:07:40,120
your knowledge base.

93
00:07:40,130 --> 00:07:45,590
You know even if it's something that you know how to do it in these areas they just try and have a look

94
00:07:45,590 --> 00:07:51,070
at other people's ways because you will find better and better ways of doing things.

95
00:07:51,620 --> 00:07:59,900
And I think that's about not for getting help from Google from a stack overflow and by finding the header

96
00:07:59,900 --> 00:08:03,830
files and the definition files inside scored.

97
00:08:04,250 --> 00:08:05,130
Let's move on.
