Hey man!Originally Posted by super-fly
Hell yeah some pics! I'd love to see the music browsing screen, the about window, and maybe like a visual wtih the music controls popped up over it!
gah someone needs to buy my current windows based carpc so i can buy a mac mini and install this!
i'm so anxious.
replicant
Audi A4 (flickr pics)
Hey man!Originally Posted by super-fly
Hell yeah some pics! I'd love to see the music browsing screen, the about window, and maybe like a visual wtih the music controls popped up over it!
-
Regarding your question about developing for it. The language is Objective-C. I don't know *anything* about the differences between C/C++/C#/ObjC or whatever. I know basically all the syntax is the exact same as C, except when you call a method of an object, you just put it in brackets.
So like in old school C you would do:
char *name = "my name";
char *lastname= "stupididiot";
(I dont even know how to concatenate strings in C, LOL)
ObjC:
NSString *name = @"my first name";
NSString *lastname = @"stupid idiot";
NSString *fullname = [name stringByAppendingString:lastname];
- or -
NSString *fullname = [NSString stringWithFormat:@"%@ %@", name, lastname];
etc, etc. You just signify that you making a call to an object's methods by using the [ ] 's. Lol I have no idea.
I guess the important thing is to treat things as objects. Like I kept trying to do this when I started:
NSString *name = @"aychamo";
if (name == "aychamo") NSLog(@"OH GOD ITS YOU!?");
But that won't work.. Because name is a string object, not a string variable. So you would have to do:
if ([name isEqualToString:@"aychamo") NSLog(@"oh its you !");
See how you make a call to the string objects (name) method "isEqualToString" ? And by using @ in front of the quotes, you are signifying the text in quotes to be part of a string object!
And it's really intelligent (as you would expect). Like, if you use an object method that returns a certain object, you can "assume" it retuurned it and run a new method from that .. like ethis:
(you'll see this a lot in the source, so I'll use it as an example)
if ([[sender title] isEqualToString:@"STOP"]) NSLog(@"you better stop!");
What's happening there is that you send the method "title" to the object "sender". This returns an NSString object. If you can see it, you can tell that we then send the "isEqualToString" method to the NSString object returned by "sender title".
Oh, ,and NSLog is osmething we use a lot for debugging. It's a way to write to the console log without having to do anything special to write to the screen. It comes in extremely handy. It honestly accounts for 90% of my debuggin (the other 10% is you guys!)
-
!!!!!!! Thank you for the pics!!! Haha! It pumps me up to see it on someone's screen!Originally Posted by super-fly
Since my screen was stolen, maybe I should go with a dang larger screen. Does that 8.4 do 800x600 natively? Or is it "stretched"? I can't really tell from the pics. Does AMP's interface look normal (besides the large black bars up top)?? (Ie, the same as it would on your mac laptop/desktop?)
-
Yeah strings are a ***** in C. They are actually char arrays. strcat() and sprintf() are the typical suspects to do it, but there is nothing in C that can only be done in one wayOriginally Posted by aychamo
When using pointers (like your example), you should also be allocating the memory to be safe (then you have to make sure you aren't putting too much data into it, blah blah blah
NS(Mutable)String does all that cool stuff for you
That will give you grief in C too. You should use strcmp() or (preferably) strncmp() instead.if (name == "aychamo") NSLog(@"OH GOD ITS YOU!?");
That reminds me. I wanted to talk to you about thatOh, ,and NSLog is osmething we use a lot for debugging.
You need to replace those with your own function that checks for a debug setting (either setable but the user, or Dev vs Prod build) so that you aren't spamming the logs during normal operations. It's just bad form
The other upside is that you can then add a bunch more so you don't have to worry about it flooding the logs under normal operation.
I'll try to get you a good example in the next day or so when I have some time (hmm, thursday at the earliest, have a footie game to go to tomorrow).
-dave
Pics!!!Originally Posted by jdisenberg
This is now an option. It'll be in the next upload.Originally Posted by jdisenberg
-
Here are some screen shots of my touchscreen running 800x600. I would really love to get the program to run in 800x600 so it would fill up the entire screen.
Great work so far. Thanks for the effort. Let me know if this helps
12"powerbook 1.33, 768Ram
K301 Touchscreen
GPS???????????
I think the standard resolution people are running is 800 x 480.
how about some shots from what it actually looks like on the screen. Like actually take a shot from a camera while AMP is running on a touch screen.
MacCar progress:
Planning:-----> [||||||||||||||||||||] 70%
Parts:---------> [||||||||||||||||||||] 0%
Construction:-> [||||||||||||||||||||] 0%
Car broken into... progress is basically zip...
I'll take one of mine in the morning, a bit too late now.Originally Posted by Sharkbite86
Bookmarks