• AppleCentral Network:
  • Tech Support
  • |
  • Open Source
  • |
  • Apple News
  • |
  • Register Domains
  • |
  • SSL Certificates
  • |
  • iPod Deals
  • |
  • Mac Deals
  • |
  • Mac Book Shelf
  • AppleCentral Home
  • MacTech Magazine
    • About MacTech in Print
    • Issue Table of Contents
    • Subscribe
    • Risk Free Sample
    • Back Issues
    • MacTech DVD
    • MacTech Archives
    • MacTech Print Archives
    • MacMod
    • MacTutor
    • FrameWorks
    • develop
  • MacNews.com
    • MacNews News
    • Blog
    • MacTech Reviews and KoolTools
    • Whitepapers, Screencasts, Videos and Books
    • News Scanner
    • Rumors Scanner
    • Documentation Scanner
  • Apple Expo
    • by Category
    • by Company
    • by Product
  • MacForge.net
  • Job Board
  • Advertising
    • Benefits of MacTech
    • Mechanicals and Submission
    • Dates and Deadlines
    • Submit Apple Expo Entry
  • User
    • Register for Ongoing Raffles
    • Register new user
    • Edit User Settings
    • Logout
  • Contact
    • Customer Service
    • Webmaster Feedback
    • Submit News or PR
    • Suggest an article
  • Connect Tools
    • MacTech Live Podcast
    • RSS Feeds
    • Twitter
You are not logged in. [Log In] AppleCentral » Forums » Mac » Programming, Web Dev & Scripting » Writing a mac app - where to start?
Register User    Forum List        Active Topics    FAQ
Page 1 of 2 1 2 >
Topic Options
Hop to:
#395177 - 11/09/08 12:40 PM Writing a mac app - where to start?
padmavyuha Offline
Trans Tomboy™

Registered: 09/03/03
Posts: 4921
Loc: Dawlish, Deepest Darkest Devon
It's possible I may have asked this before, but this is with renewed enthusiasm and some spare time...

Getting back in to weaving, I was looking for mac apps to experiment with weaving patterns - there's only one, and it's ridiculously expensive and intended for running industrial-size patterns. Trying out the available/affordable winxx apps, they're basically pretty crap, and I think I could make a much more usable app on the mac.

The problem is, I've never written an app before, never coded in cocoa or whatever, and don't really know where to start. Can anyone suggest good books/resources for someone starting from scratch writing a cocoa app that uses quite a lot of (probably fairly simple) graphics? the basic idea of the app is to create a graphical matrix that shows what a particular tie-up and treadling sequence with particular warp/weft colours will look like as a cloth. Here's an example of a cheap/bad winxx app trying to it (sorry about this):



I'm not completely new to coding, I've written a lot of code in a proprietary sort of BASIC that belonged in a pre-windows 4G database app called Advanced Revelation, and I've done some Fox BASIC and some fairly intricate LISP (also for a GUI app).

I assume that having leopard, I already have the xcode development kit on my DVD (though I'll need to d/l an up-to-date version) - but for me it'll be like wandering around the LHC without a map...

(Actually, I find myself wondering whether there's any mileage in considering developing it in webkit form - would that be terribly slow for large arrays?)

- padmavyuha
_________________________
If it's brokenless, don't suffix it...

Top
#395221 - 11/09/08 05:01 PM Re: Writing a mac app - where to start? [Re: padmavyuha]
zwei Offline
soporific

Registered: 06/26/04
Posts: 2541
link-o

That's where I suggest you start. Create an account and copy/paste your post into their developer forums. They have been quite helpful to me in the past.

Also, there is a LOT of documentation that comes with Xcode ...good luck wink
_________________________
twitter

Top
#395252 - 11/09/08 06:40 PM Re: Writing a mac app - where to start? [Re: padmavyuha]
Svend Offline
Científico aficionado

Registered: 06/12/08
Posts: 649
Loc: América del Norte
Go to your local book store. In the computers section there are probably several how to get started books. Look through them, pick the one that works best for you.

Something like this, maybe -







I believe your idea of a first app, your weaving program, is way to ambitious of an undertaking to start with.
_________________________
Yo soy un hombre sincero de los alpes suecos. Con los pobres de la tierra, quiero yo mi suerte echar.


Top
#395257 - 11/09/08 07:17 PM Re: Writing a mac app - where to start? [Re: Svend]
padmavyuha Offline
Trans Tomboy™

Registered: 09/03/03
Posts: 4921
Loc: Dawlish, Deepest Darkest Devon
Thanks... Yes, it's ambitious, but in my experience it's much easier to get motivated to learn how to do something if you have a genuine project you want to bring to fruition, rather than some vague idea of learning in the abstract.

I've got some idea of what might be involved through sitting down and beginning to scope out what I want the app to do. There's a lot of interesting logic to work out in order to make the coding behind display of the weaving pattern array as 'elegant' as possible in as few lines of code as possible. The image I posted above just dips its toe into what's possible even on a 4-shaft loom, never mind on the 8-shaft one I'm actually using at home. I've basically got to create a resizeable visual array whose contents/colours are determined by switches and colour selectors for each warp/weft. It's nowhere near as complex as, say, creating a game arena, because there's no interaction with the actual weaving display itself, just tweaking it from the edges. I'll worry about more fancy things like 3D effects later on smile.

This is also going to help me with my own weaving, and understanding more deeply how weaving patterns work. It's then going to be fun adding all the functionality like selecting blocks of pattern and copying them, changing one colour to another globally or within a selected range (something a lot of the other apps don't do, stupidly enough), how best to print the thing out, and opening from/saving to the existing .WIF file format that other weave apps use, which offer users a lot of preformatted templates.

Fun and headache, I'm not expecting to get this done any time soon. Meanwhile, I've been hunting around on the net, and people have pointed me to two books: 'Programming in Objective C' by Stephen Kochan (for learning Obj-C from scratch) and Cocoa 'Programming for Mac OS X' by Aaron Hillegass (for the cocoa- and OSX-specific stuff, including using xcode etc.)

Lots of forum etc. help available, I just need to crack into it.

- padmavyuha

_________________________
If it's brokenless, don't suffix it...

Top
#395263 - 11/09/08 07:39 PM Re: Writing a mac app - where to start? [Re: padmavyuha]
neil Offline

Neil Ticktin

Registered: 06/05/08
Posts: 1189
Loc: Westlake Village, CA
Guys,

There's an entire column in MacTech dedicated to helping people learn to write apps on Mac OS X. It's called Road to Code.

Look up Dave Dribin ... he's the author behind the series ... you can see his article list at:

http://www.mactech.com/articles/mt_indices/D_Authors.html
_________________________
Neil Ticktin
Editor-in-Chief/Publisher
MacTech: Magazine, iPad, Web, and Live Events
Check out: MacNews | Mac Community Search | MacTech on iPad!

Top
#395288 - 11/09/08 09:58 PM Re: Writing a mac app - where to start? [Re: neil]
Nagromme Offline
Carpal Tunnel

Registered: 01/10/08
Posts: 890
Loc: USA
I'd also consider RealBASIC, which I think has a free trial.

And there are a zillion open-source 2D game engines, some of which are less technical to learn than others. One of those might lend itself to weaving!
_________________________
nagromme

STROGG: Change We Can Believe In
TeamMacOSX.org

Top
#395309 - 11/10/08 01:14 AM Re: Writing a mac app - where to start? [Re: Nagromme]
padmavyuha Offline
Trans Tomboy™

Registered: 09/03/03
Posts: 4921
Loc: Dawlish, Deepest Darkest Devon
Thanks for the ideas, folks...
_________________________
If it's brokenless, don't suffix it...

Top
#395401 - 11/10/08 02:37 PM Re: Writing a mac app - where to start? [Re: Nagromme]
FSM Offline
Pastafarian

Registered: 05/20/07
Posts: 5142
Originally Posted By: Nagromme
I'd also consider RealBASIC, which I think has a free trial.

And there are a zillion open-source 2D game engines, some of which are less technical to learn than others. One of those might lend itself to weaving!
i made a simple app using RealBASIC about 4 years ago or so. i kept the code pretty short, yet RB added a lot of bloat and my app was huge. if i get back into it, it's Cocoa all the way for me.

Top
#395545 - 11/10/08 11:33 PM Re: Writing a mac app - where to start? [Re: FSM]
Nagromme Offline
Carpal Tunnel

Registered: 01/10/08
Posts: 890
Loc: USA
FIle size isn't too critical these days. Maybe my 10MB app could have been 2MB, but no harm done. (Plus being able to deploy instantly to Windows and Linux was nice.)
_________________________
nagromme

STROGG: Change We Can Believe In
TeamMacOSX.org

Top
#396139 - 11/12/08 11:16 PM Re: Writing a mac app - where to start? [Re: Nagromme]
padmavyuha Offline
Trans Tomboy™

Registered: 09/03/03
Posts: 4921
Loc: Dawlish, Deepest Darkest Devon
I've just started working my way through Programming in Objective-C - it's very well written so far, functioning as an introduction to programming for someone who's never really learned it systematically before (and no object-oriented stuff anyway). I've opted for writing the test programs in TextWrangler and compiling/running them in Terminal for the moment, because I tried using Xcode and it felt like climbing into the flight cabin of a Concorde in order to cross the road smile. The book is a little out of date in that area, in that it walks you through using Xcode's predecessor, Project Builder. This means that something as basic as running a 15-line program and actually seeing the output from it is currently beyond me. I'll need to know how at some point, but the TW/Terminal combo suits me fine for now.

The author is doing a good job of explaining the basics of objects/instances/methods etc. - I've had folk try to tell me about this before, but this is the first time it's started to make sense.

I'm finding this strangely exciting - I suppose it's because I've been using computers for 22 years now, and now I'm peeking under the bonnet properly for the first time. Plus I love languages!

There is already a wee corner of my mind that is starting to mull over how one might define graphical objects that will end up displaying an array that resembles a weave pattern - and of course, there's another slightly larger corner of my mind that is already considering what would be a cool name for my app smile. I have (just) enough dignity to avoid any Trekkie names such as 'WarpFactor'.

- padmavyuha
_________________________
If it's brokenless, don't suffix it...

Top
Page 1 of 2 1 2 >
Previous Topic
View All Topics Index
Next Topic

Tweet

Preview

Moderator:  Acumowchek, MacGizmo, Reboot 
Print Topic
Switch to Threaded Mode
Publications, Articles and Industry Discussion
   »MacTech/MacNews Article Discussions
   »Apple World
Marketplace
   »Deals and Special Offers
      »Expired Offers
   »Trading Warehouse
Mac
   »Hardware
   »Software
   »Servers, Security, and Networking
   »Programming, Web Dev & Scripting
   »Windows and Virtualization
   »Cloud and Online Services
Mobile Technologies
   »iPhone Apps, AppStore, and iTunes
   »iPad, iPhone, iPod and Apple TV Hardware
Mods and Hacks
   »General Mods
      »Techniques
      »Miscellaneous
      »Mod Logs
   »Laptop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Desktop Mods
      »Case Mods
      »Hardware Mods
      »Misc. Mods
   »Peripheral Mods
      »iPod Mods
      »Misc Mods
   »Software Hacks & Mods
General Discussion
   »Site Feedback & Issues
   »Stan's Lounge
   »Soapbox
Now Software Support
   »Announcements
   »Now X
      »FAQs
      »Discussion
   »Now Up-to-Date & Contact
      »Community Help
      »Tips and tricks
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
View profile
Send a PM
View homepage
Add to your Watched Users
View posts
View profile
Send a PM
Add to your Watched Users
View posts
Board Rules · Mark all read
Contact Us · AppleCentral · Top

MacTech Only Search:
Community Search:

 
 
 

 
 
 
 
 
  • SPREAD THE WORD:
  • Slashdot
  • Digg
  • Del.icio.us
  • Reddit
  • Newsvine
  • Generate a short URL for this page:



AppleCentral. www.applecentral.com
Main office: 805-494-9797
Xplain's use of MacNews, AppleCentral and AppleExpo are not affiliated with Apple, Inc. MacTech is a registered trademark of Xplain Corporation. AppleCentral, MacNews, Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, MacTech Central, MacTech Domains, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corp. Sprocket is a registered trademark of eSprocket Corp. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.
Powered by UBB.threads™ PHP Forum Software 7.5.8