Results 1 to 7 of 7

Thread: Starting to Make a Mac FrontEnd

  1. #1
    Low Bitrate hookid's Avatar
    Join Date
    Jul 2005
    Location
    Denver, CO
    Posts
    81

    Starting to Make a Mac FrontEnd

    Hi i'm dedicated to making a frontend on mac. I just got a book on os x programming and im learning to use xcode and interface builder, and objective-c. My question is, how do you like import things into interface builder that you made in photoshop or things like that for your interface? Thanks

  2. #2
    Variable Bitrate viper24's Avatar
    Join Date
    Oct 2005
    Location
    Sacramento, CA
    Posts
    368
    no idea regarding your question, but props on joining the dev team!

    it looks like we now have 2 or three strong developers who are working on nice, easy, clean frontends for up mac users!

    let me know if you need hosting, im hosting dash_run (our latest frontend) for sti.

    It would be great if we could all come together, we have been in need for a good solid frontend.
    2005 Dodge Ram HEMI

    http://www.cardomain.com/ride/2239451

    15" LCD touchscreen
    Mac Mini
    6" Headrest monitors
    Modded Xbox

    5 PSone screens going in doors
    And another 15" LCD!

  3. #3
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by hookid
    My question is, how do you like import things into interface builder that you made in photoshop or things like that for your interface?
    I did it for my first attempt at an interface that i've scrapped and started over. Hopefully I remember acurately for you

    There are a couple of ways you can do it, but regardless the first thing you need to do is import the images into your XCode project.

    If you want them to be static, then you can reference them in the attributes of the object in IB as the file name (no path needed) without the extention (i.e. just "image" if the file is "image.gif").

    If you want to change them on the fly in your code (not that you can't do the above for a default and then do this to change it later), do something like:

    Code:
    NSString *imageName = [[NSString alloc] initWithString:@"volFull.gif"];
    NSImage *volImage = [NSImage imageNamed:imageName];
    [globalVolImage setImage:volImage];
    Where globalVolImage is an outlet for a NSImageView object in your interface. Other interface objects should work similar.

    Hope that helps.

    -dave

  4. #4
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by hookid
    I just got a book on os x programming
    If you haven't gotten Hillegass' book yet, I would suggest it. His is the best I have found so far about giving simple examples about how to code for interface elements. All the other books i've seen go through building some arbitrary app that make it difficult to figure out just the part you need. Also there is a great book that just focuses on Obj-C (non-Apple specific).

    -dave

    Cocoa Programming for Mac OS X (2nd edition)
    Aaron Hillegass
    Addison Wesley

    Programming in Objective-C
    Stephen G. Kochan
    Developer's Library

  5. #5
    Low Bitrate hookid's Avatar
    Join Date
    Jul 2005
    Location
    Denver, CO
    Posts
    81
    Quote Originally Posted by iamgnat
    If you haven't gotten Hillegass' book yet, I would suggest it. His is the best I have found so far about giving simple examples about how to code for interface elements. All the other books i've seen go through building some arbitrary app that make it difficult to figure out just the part you need. Also there is a great book that just focuses on Obj-C (non-Apple specific).

    -dave

    Cocoa Programming for Mac OS X (2nd edition)
    Aaron Hillegass
    Addison Wesley

    Programming in Objective-C
    Stephen G. Kochan
    Developer's Library
    I bought "Beginning Mac OS X Programming" by Michael Trent and Drew McCormack

    I looked at Cocoa programming for mac os x but it seemed like you had to know C, C++ as some people said in the reviews on amazon.com, and i dont know either, i know nothing.....so what do you recommend for someone who knows nothing? I think the book i have now might be good. The Programming in objective-c i might pick up too. Thanks

  6. #6
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by hookid
    I looked at Cocoa programming for mac os x but it seemed like you had to know C, C++ as some people said in the reviews on amazon.com, and i dont know either, i know nothing.....so what do you recommend for someone who knows nothing?
    Hmmm. The Hillegass book seems pretty good in that regard, but I have been programming for years and unfortunately have a difficult time teaching others I would suggest picking up some basic programming books that focus more on logic and programming concepts rather than anything on a specific language. Programming is more about applying concepts through logic to achieve the result than the language you select. If you really understand logic, 90% of the languages out there are just syntax (most actually look very similar).

    If you have trouble finding language agnostic books (look for things like pseudo code, program design, etc..) look for basic C books since Obj-C uses C as it's basic language (the object handling is the only difference that i've noticed so far).

    For any language specific books, I would suggest books like Hillegass' that give simple clear examples rather than walking you through an end to end teaching situation. With the later, you're pretty much done with it as soon as you finish. With the former, you may find that you refer to it for years to come (I actually have a C book that I still refer to that was one of the first I bought over 15 years ago).

    I can say though that even with my experience in C, it only helped with the basics of Obj-C. The "Programming in Objective-C" was the biggest help for me.

    The real kicker is that we all learn differently. I personally can't go through the step-by-step type books. I need something specific to do and straight forward examples of how to go about it.

    I hope that somehow helps.

    -dave

  7. #7
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Quote Originally Posted by hookid
    Hi i'm dedicated to making a frontend on mac. I just got a book on os x programming and im learning to use xcode and interface builder, and objective-c. My question is, how do you like import things into interface builder that you made in photoshop or things like that for your interface? Thanks
    I just dragged and dropped the files into Xcode. Then, in interface builder, you can drag the images onto the controls.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

Similar Threads

  1. Mac Mini in a Mazda Protege
    By zapwizard in forum Show off your project
    Replies: 18
    Last Post: 08-07-2006, 09:18 AM
  2. False floor
    By i3igmind in forum Fabrication
    Replies: 29
    Last Post: 02-04-2006, 11:28 PM
  3. Replies: 31
    Last Post: 04-18-2005, 05:12 PM
  4. Destinator 3 Frontend v1.1
    By Ninja Monkey in forum Map Monkey
    Replies: 139
    Last Post: 10-25-2004, 11:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •