The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > MacCar > CarFrontEnd

Closed Thread
 
Thread Tools Display Modes
Old 07-27-2007, 12:29 PM   #16
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Quote: Originally Posted by Bugbyte View Post
Don't know how you fixed it, but one option is to store the UniqueID either in a variable or write it to prefs.

Haven't fixed it yet (found it on the way in this morning), but that is what I am going to change it to. I'll add it to the timed pull, then pull the rest of the info if it changed.

Quote:
It also makes resume from sleep or on program restart on the same track real simple.

iTunes does that for you (unless you are talking about over iTunes restarts). Originally I was planning to put in a wake from sleep trigger to start playing the music again, but i've gotten used to it not playing until I want it to (handy for quick trips, where I don't want any music, or where I forgot to turn the volume down the night before ).

Quote:
I've seen those lines. Wondered what they were!

Lazy graphics programmer You don't see them in the screen shots that I posted (actually you can in the full size version, it's just not as noticeable) because the image isn't stretched, that's what is making the flaw more glaring.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Sponsored Links
Old 07-30-2007, 02:14 PM   #17
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,590
My Photos: (38)
Okay, so I've been giving this some thought and want to ask a few questions about the framework.

As I understand it, a framework is a collection of routines that may be reused or need to be accessed by plugins, for example. If that is true, then what I was thinking was this framework could be useful not just for modifying, but also for giving people a leg up to create their own front ends with less programming effort.

Most front ends need to play music. In the case of CFE, you have it controlling iTunes, which is a good place to start. What would be cool is if I could use the Framework for my own personalized interface, usint it to do stuff like return a list of music or playlists or to start/stop/pause and so forth. That way I wouldn't have to reinvent the wheel all the time.

Most of what I would want to do is say "make this button do that iTunes function" or "put the list of songs in this control" and so forth. Some people are interested in how to do that, most probably aren't.

Increasing the capabilities of the framework would be done by adding modules to the framework. For example, modules could be added to the framework that would play movies, perform trip computer functions, maybe read the GPS or GPSDX daemon and so forth.

That would let others concentrate on the user interface. If some people wanted an interface that looked like an iPhone, okay. If others wanted specialty logos, that would also be fine. It would be a matter of setting up the UI to connect to the framework.

Am I off the tracks here, or is could it be done that way?
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline  
Old 07-30-2007, 03:10 PM   #18
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Quote: Originally Posted by Bugbyte View Post
As I understand it, a framework is a collection of routines that may be reused or need to be accessed by plugins, for example. If that is true, then what I was thinking was this framework could be useful not just for modifying, but also for giving people a leg up to create their own front ends with less programming effort.

Basically, you are correct.

A framework is meant to group code together that serves a similar purpose so that it is easily reusable. There are two main types of frameworks that are common. The first is the public framework which is meant to be used by other programmers either to extend an application or to simplify functionality for any application to use. The other is a private framework which is stored in the application that uses it and is not meant to be used by the rest of the world.

For CarFrontEndAPI, as well as defining the Protocol for the plugins it supports, it will mainly provide Cocoa control subclasses (and IBPalettes when I get that far) that will allow plugin programmers to easily maintain the look & feel. It's main goal is UI extentions, the protocol is just thrown in too rather than have a separate framework for a single header file.

Quote:
Most front ends need to play music. In the case of CFE, you have it controlling iTunes, which is a good place to start. What would be cool is if I could use the Framework for my own personalized interface, usint it to do stuff like return a list of music or playlists or to start/stop/pause and so forth. That way I wouldn't have to reinvent the wheel all the time.

That is a worthy idea, and actually probably a really good one to help build Mac frontends (if developers built frameworks that did the required functionality, then anyone could simply build a UI that they liked around it). That falls outside the direct scope of CFE, but I will try to keep it in mind when I write my own music player (e.g. write it as a framework that a plugin displays the info for).

Quote:
Increasing the capabilities of the framework would be done by adding modules to the framework.

This is actually not what you would want to do for a couple of reasons.

The first, as I mentioned above, is that a framework is supposed to provide rather specific functionality (e.g. you shouldn't have framework that primarily processes text also process images (unless there is some direct correlation)).

The second reason falls what the programmer/user needs. One of the main things I despise about Java* is the ability to import modules with * (e.g. import java.lang.*) because you are importing more than you actually need (I understand you don't have to, but it's shocking how many "experienced" programmers do!!!). While it is handy and simple, it is bad style and leads to code bloat.
For our purposes, if I am not interested in GPS why should I have to compile and link against a module that contains it?

The main goal of CFE is to provide an interface that allows the user (and the programmer) to only include what they care about and leave the rest out.

* I believe Java and similar languages being taught in CS courses is the death stroke for talented programmers that understand things like resource management. Just because HDDs and RAM is cheap does not mean there are not better things we can do with it besides linking in MBs of libraries that aren't required or letting the VM determine when I want to free memory.

Quote:
That would let others concentrate on the user interface. If some people wanted an interface that looked like an iPhone, okay. If others wanted specialty logos, that would also be fine. It would be a matter of setting up the UI to connect to the framework.

Am I off the tracks here, or is could it be done that way?

I don't think so at all. If we could build a library of frameworks like you suggest, then creating custom UIs would be insanely easy even for those with little knowledge of programming (e.g. they just need to know the basics of XCode, IB, and Cocoa/Obj-C).

For my part, I will try to keep this in mind as I start to work on other CFE plugins (AddressBook, sys info, and iCal (will require Tiger) are what are on my mind once I over come the UI issues that currently have me stumped). Then anyone can extract the framework from the plugin bundle and use them as they see fit.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Old 07-31-2007, 04:50 PM   #19
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Just a quick update on a few things.

I'm still waiting on SF to review my project request and add it. I am still going to post the code as soon as I have a place to do so.

I have updated the previous track functionality so that it skips to the beginning of the track if it has been advanced past the 10 second mark. This will be in my next release.

I finally made a break through last night on generating the images for my buttons (though in doing so I deleted some code that I now need again ), so hopefully i'll have them fixed soon.

I am working on sound deadening my Escape in the evenings, which will curtail my afterwork programming until it is too dark to see outside for awhile so updates may be slow for a bit (P.S. unless you REALLY love your car, I advise paying someone to do it )

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Old 07-31-2007, 08:35 PM   #20
Newbie
EnglandGreen's CarPC Specs
 
EnglandGreen's Avatar
 
Join Date: Aug 2006
Location: Vero Beach, FL
Vehicle: 2001 Corvette Coupe
Posts: 38
My Photos: (4)
Schweeeeet!!! Thanks Dave!!!
__________________
EG
EnglandGreen is offline  
Sponsored Links
Old 08-02-2007, 11:30 AM   #21
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Update

Ok, i've given up on SourceForge and moved to Google Code. I have created the mac-carfrontend project and uploaded the current App and Framework archives.

I have also reorganized my source so that it will fit in a repository better and will get it checked in later today or tonight sometime.

Finally, I converted the XCode project and NIB files to the 2.x format so anyone (that can run the latest public XCode and IB versions) should be able to work with it.

-dave

Update: Source is now up.
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)

Last edited by iamgnat; 08-02-2007 at 12:43 PM.
iamgnat is offline  
Old 08-08-2007, 09:01 AM   #22
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Update

As much of the sound deadener as is going in is in until the weather cools off quite a bit (all the interior is done, I just need to do the doors), so now I can get back to work on CFE.

I'm presenting it to my local MUG next week (the guy that runs the group is impressed with it even though I don't think there is anything overly special about it and i'm the only one in the group that is doing anything with a Mac in a car ). In the meantime i've given up on fixing the button images and hope to enlist the assistance of someone from the group that has more graphics experience.

Since i've knocked the buttons off my list for the time being, i'm working on redoing the plugin buttons. The new interface will be 3 (just couldn't squeeze a 4th in ) "Quick Slot" buttons on the left side (where the iTunes image appears now, but a little over twice as wide). Assuming there are more than 3 plugins installed, it will let you set which plugins are accessed by those buttons. All the other plugins will be available from the Menu screen (every thing below the Hide and Quit buttons has been given over to plugin management now).

The idea is that you should be able to quickly jump to the plugins you use most with a single button press. Others will be available in 2 (Menu, the Plugin button).

The code is complete for this change, I started working on the compile errors last night. Hopefully I will have it working and checked in sometime this weekend.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Old 08-08-2007, 10:44 AM   #23
Maximum Bitrate
Machinehead's CarPC Specs
 
Machinehead's Avatar
 
Join Date: Jun 2007
Posts: 739
My Photos: (0)
Considering the limited Mac based front end options, I think what you've got going on is pretty impressive.

And I fully understand not wanted to work in the heat. I was out re-installing the Mini into my Xterra last night in almost 100 degree heat.
Machinehead is offline  
Old 08-11-2007, 04:37 AM   #24
Low Bitrate
bpwned's CarPC Specs
 
bpwned's Avatar
 
Join Date: Jan 2007
Location: Munich, Germany
Vehicle: 2004 Land Rover Freelander
Posts: 81
My Photos: (3)
Sounds great! I really like it that you focus on usability and not on other things.

*tries to learn obj-C & cocoa as fast as possible so he can contribute*
bpwned is offline  
Old 08-12-2007, 06:38 PM   #25
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
Yay it works on my Mini now. Apparently 10.4.7, iTunes 7.1.1, and god only knows what archaic version of QuickTime were a bit too out of date for CFE. I updated everything on my Mini and it's all happy now

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Old 08-14-2007, 10:49 AM   #26
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 847
My Photos: (0)
I've split out some of the posts to their own threads and will probably do some more. I'm going to close this thread now, please use threads in the CFE forum to post any questions, concerns, problems, or ideas about CarFrontEnd.

Thanks,
-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline  
Sponsored Links
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
what front end do you use? emdzey01 Software & Software Development 30 02-24-2006 07:07 AM
which front end for no touch screen? turbochris Newbie 4 08-30-2005 09:59 AM
This is an awesome front end, and here is why: WhiteRabbit NeoCar Media Center 47 08-27-2005 09:43 PM
Front End Challange! SEGgeek MacCar 30 08-16-2005 10:16 AM
Front end needed for semi commercial venture Orange Bus Software & Software Development 10 04-28-2005 01:59 AM


All times are GMT -5. The time now is 04:58 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics