Monday, August 17, 2009

NXText NXC v3.01

For those who do not already know, I've released NXText NXC v3.01 over on NXTasy's forums here, alongside NXTUIKit, my GUI code library. Check it out!

Wednesday, August 5, 2009

Current NXT projects

Yes, I am still alive; I just haven't posted here in ages. Recently, I have been getting back into Lego Mindstorms more than I have this whole summer. Well, at least in the programming aspect, that is. I thought I would update you guys about two projects that are both a work-in-progress. First, I am developing a GUI code library in NXC. I hope to release it soon. It is a library of functions intended to help NXC developers with designing their GUIs. This includes such things as text menus, text views, generic menus, confirmation dialogs, etc. I don't think that it should be hard for the average NXC coder to design a good-looking, functional user interface for his NXT program. So I hope that my code will help. Second, I am rewriting NXText to use my new GUI code library and to clean up the code base. After having been on a break from NXT programming for such a long while and instead learning Cocoa, coming back to NXC, I can't believe how horrendous my code is! I named functions and variables terribly, my overall code design was ugly, and I used too many global variables! Ah! So I hope that this redesign of NXText will simply clean up the code base and make it much more manageable. It will most likely not improve the size of the executable, but we'll see. Oh, and before I leave, I need help naming my GUI library. I was thinking about NXTKit, but that is too similar to NXT Kit, which will bring up tons of results on google. Any naming ideas would be great. See you on NXTasy! NXTFreak

Thursday, April 16, 2009

Mac application development

Whew!  I haven't posted here in quite a while!  So now would be a good time to post.  :-)  In my spare time--which I don't have that often--I continue to read Cocoa Programming for Mac OS X by Arron Hillegass.  I have made it up to Chapter 15, but I have decided to go back a few chapters and review some of the stuff that I have learned so far.  Why would I want to do that?  I forget to easily.  :-)  Anyway, so as I have been reading this book, the author is taking me through the steps to creating a full-featured Mac application called RaiseMan (I know, weird name).  This application keeps track of employees and the raise that they are to receive for the year.  I have posted some pictures of it below.  It may seem quite insignificant, as it is not that complex at all, but it has the ability to create, edit, and delete employees; undo and redo adds, edits, and deletes; save employees to a .rsmn file and load them from the same filetype; and change two preferences--background color and automatic new-document creation.  So actually, it has many of the important features every document-based computer application should have.  You know, I am only 14 years old, so the fact that I am actually reading and understanding my book and creating real Mac applications is so exciting to me.  I can't wait to learn more (in my rare spare time, that is)!

Screenshots:
Preferences panel and document window
Deleting employees

Multiple documents

Friday, March 20, 2009

What's been going on...

So, if anybody ever comes to my blog, he might be thinking, "What happened to NXTism?" Well, the truth is that I haven't been messing with my NXT for a long while: neither programming nor building. I know, this is sad. I just haven't really been in to NXT (especially the building aspect) for quite some time. Visiters to NXTism may have noticed that all I hardly ever posted about was NXText, a program I had been developing for the NXT. When I first got my NXT, which was only two years ago, I was NXT crazy! I was building new things, putting vids on Youtube, and programming my 'bots. I got my second NXT one year later, but didn't use it as much as I thought I would. I kinda fell into a slump, where whenever I tried (and still try) to build something, I just don't get any creativity. It stinks. If I would get some "creative juices" flowing, as they say, then I would still love to build with my NXTs. Even though I wasn't building anything, I was still programming the NXT with NXText. NXText is a program that runs on the brick without the need for any external sensors or motors. As of v2, it lets you open, delete, send, archive, and unarchive text files on the brick. This program is, honestly, pretty silly, because it runs on the NXT, which is nothing like a real computer. Basically, out of the NXT came my love for programming. So, I discovered that I loved to program; "Where to next?" I thought. I have always loved Macs and Apple, so I knew that if I were going to develop computer applications, I would want to do so on a Mac (sorry, but I kind of hate PCs *please don't take this personally; it's just my opinion). The current and probably best way to code for the Mac is by using Objective-C and Cocoa. So that is where I headed; I bought Kochan's Programming in Objective-C, and Hillegass' Cocoa Programming for Mac OS X. Where am I today? Starting to develop my first little REAL applications! I am very excited. I am currently following Hillegass' book and am in chapter 6. I had been previously reading Kochan's book. So from NXT-G to NXC to Objective-C/Cocoa! Can you believe that? Only two years after getting my first NXT, I am now just starting to create applications on the Mac (very small, insignificant ones, that is. I'm only in the sixth chapter you know...). Pretty cool huh? And this may never had happened unless I had gotten my first NXT. Thank you Lego for creating such a great thing: it has helped me find my true passion for programming. So there ya' have it. Just some reflections on what's been goin' on in my life lately. NXTFreak

Sunday, January 18, 2009

NXText NXC v2

Lately I have been working on NXText NXC v2, and all I can say is that it is going to be awesome! On the left is a little sneek-peek of what's coming in this next release. This is the list of text files on the NXT. As you can see, multiple files are selected! Yup, multiple-file-selection support is coming to NXText! There's even more new stuff that's equally exciting, but I'm not gonna' tell you what those other features are just quite yet. You'll have to wait to see what they are. I'm planning on releasing V2 when I get a few other things working right. Until then, NXTFreak

Friday, January 2, 2009

NXTasy problems?

I haven't been able to access www.forums.nxtasy.org at all today; the server must be having some issues. I really wish I could get on the site, because I want to check the BricxCC/NXC wishlist topic in the Software sub-forum. Are any of you guys having problems accessing NXTasy, or am I the only one? NXTFreak

Thursday, January 1, 2009

Objective-C

So lately I have been doing absolutely nothing related to the NXT (which is why I haven't been updating this blog).  :-(  Instead, I have been learning Objective-C using Stephen Kochan's book, Programming in Objective-C.  I wish that I could just know it all automatically, but unfortunately, it doesn't work that way.  It's a long learning process instead.  Specifically, I am currently learning about categories, posing, and protocols.  After I finish this book, I am probably going to read Cocoa Programming for Mac OS X.  So there's a little update of what I have been doing recently.  What are you guys up to?  NXTFreak