yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Mac Programming Lesson 3 part 3


2m read
·Nov 3, 2024

Okay, so now that this is ready, we're going to do our final step entries text. I believe set string value and now we're going to set it to new text. If you remember, new text is an NS string that will have all the entries, and we keep on appending the next entry to it, so it will have all the entries.

So now finally we're going to do interface builder stuff in it all up. I'm going to open the xib; interface Builder will now pop open, and I'm going to drag an NS object into our document window. Just do that by going here, and then under the class, I'm going to set it to be app controller.

So now for this, I'm going to drag on a simple, I think I'll do a multi-line label for this, which is in fact an NS text field. I'm going to drag on a button—who knows why the button is so small? Okay, now we're going to say generate. Close, so we're going to drag it to app controller. Click, hold control and drag it to app controller and click generate new numbers.

And we're going to click from app controller. Control click from app controller and link it up with entries text, and now everything will work wonderfully. So hopefully we'll see a success here, generate, and here are all our entries.

Now, if you take a look, all these dates are exactly the same. What I would like it to do is just continuously keep on incrementing the date by 7 days, and it's not that difficult to do. So what we're going to do is right here when we say entry date equals Etc., we're going to say the day is this + 7, and that's pretty easy.

So now, like we're we keep on adding seven to the day, and then we'll just keep on increasing. So there we go, and it's like a perfect lottery. So every week we have a new set of numbers, and now I can cheat because I know all the numbers. No, but this is pretty cool.

You can do all the interface builder stuff you want to polish this up, but this is really, in my opinion, a good learning experience. Now it is very—like we learned so much new stuff today. I think what you guys should do is ask me all your questions, so in a personal message or whatever, just send me every single question you have, and I'll try to answer you as soon as possible.

So, um, anyway, thanks for watching. Mids and one—subscribe, tell us all your problems or questions, and goodbye.

More Articles

View All
What Lies Beneath London’s Liverpool Rail Station? | National Geographic
[Music] People are surprised about what lies beneath London, especially when they find human remains. The Liverpool Street Station is one of the most important for archaeology because we’re right in the heart of the ancient city here. The cemetery was in …
I Know What Trump Feels Like After The Assassination Attempt
And it was very scary. So I know what Trump feels like today. I ran for Prime Minister of Canada in, um, 2016. I decided to run for it, and my wife thought I was nuts, but I just felt I wanted to give it a shot, okay? I had never done politics before. Ca…
LearnStorm 2018 Growth Mindset Livestream
Hello and welcome to the Learnstorm Growth Mindset live stream! I’m Rachel, a Senior Communications Manager at Khan Academy, and I am so excited to welcome you to the Khan Academy offices here in sunny California. Today’s live stream is going to be about …
AP US history long essay example 3 | US History | Khan Academy
This is the third video in a series about tackling the long essay question on the AP US History exam. Now, in the last video, we were kind of weighing the evidence about the New Deal, considering the ways in which the government, the economy, and race, c…
Charlie Munger Just DOUBLED His Alibaba Position!
Well guys, welcome to the new office. I was actually going to leave. I was going to have Sunday’s video be the first one where we’re actually in the office. But of course, right after I recorded that video, we have big breaking news from the one and only …
Touring Elon Musk’s $50,000 Tiny Home
So Elon Musk just purchased this foldable home for fifty thousand dollars that could be assembled in under an hour, and they’re taking over the world. I should have a Boxable! Yeah, you do! Some prototype Boxables that’s down in South Texas. It’s an out …