Wednesday, November 19, 2008

Memory management in NXText NXC

I recently posted over at NXTasy's forums (link) on some issues I have been having with NXText NXC where, after adding the ability to read text files that contain line breaks, my program could only open small files (3 kb).  I therefore decided to take out this ability so that my program could open larger files.  I then started using the ReadLnString function to read text from a text file.  Well, trying to open a 6 kb file took 25-30 seconds using this function!  That is WAY too long.  I posted about my problems in the above-mentioned topic, and Mr. Hansen graciously helped me and came up with a solution.  Using his code, my program can now open a 12 kb file (the largest I have tested so far) in a fraction of a second!  If you render this baby, it ends up being 99 PAGES LONG!  This greatly improved the speed of my program and works like a charm.  I am now very happy...  NXTFreak

Wednesday, November 12, 2008

Lack of updates...

I apologize for the lack of updates everyone (not that anyone reads my blog).  I have be super busy lately.  I have so much homework to do I'm sure I'm gonna' die (huddles up in corner  and starts rocking back and forth while saying eerily, "Research paper, research paper!")  Yeah so school has been my life.  There hasn't been any progress with NXText NXC, unfortunately.  So what have I been up to lately programming-wise?  Good question.  I guess I'll just have to answer that for ya'.  Are you ready for this?  I'm trying to learn Objective-C/Cocoa!  Cocoa is an object oriented programming language for Mac OS X.  If you don't know what the heck an "object oriented programming language" is, don't worry 'bout it.  Basically, it is a programming language that uses objects.  :-)  Look it up on the web if you want to know more about it.  You see, my hope is to become a computer programmer and to develop applications.  So that's your little update for now.  Farewell...
NXTFreak

Monday, November 3, 2008

Text menus are so awesome...

Alrighty! Sorry guys for not posting in a while. Life's very busy, and that isn't gonna' change until Christmas break (starts drooling). Back on topic, I wanted to go ahead and give you folk's a nice little preview of NXText (NXC) to whet your appetite, and so I did. The pic to the left demonstrates the file list. The cool thing about it is that it resizes. What do I mean by that? I mean if you have more than six files to display, moving the arrow to the very buttom file and then moving it down again will make the list scroll! Pretty cool, huh? And what's even cooler is that I can reuse the text menu because it is contained in a function! You pass a string array to the TextMenu function, and it will display it for you. That way I can use it for sub-menus and such. Well, there's you're little NXText update... NXTFreak