Cocoa 48-Hour Programming Challenge

DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #16
Well, I got the basic distance algorithm worked out (great circle one), of course without the database part, as I could not find any database with cities and coordinates in it after some googling. But, I pulled a little Cocoa app out of my sleeve where you can enter 2 sets of lon/lat coordinates and it tells you the distance and a few useless things.

http://web.axelero.hu/g5d6/arculator.zip
Quote this message in a reply
Member
Posts: 201
Joined: 2002.06
Post: #17
Camacho Wrote:Would be useful if anyone here plans to go around the world and stay at the home of a forum member. Wink

Interesting idea..... Maybe.... I dunno about that.... Hmm.... Nah. I don't like any of you guys! Smile
Quote this message in a reply
Member
Posts: 196
Joined: 2002.04
Post: #18
Suggest the next contest? April fools 48 hour Cocoa application contest. Ok sorry I just had to put that one in there Grin.
Quote this message in a reply
Oather
Unregistered
 
Post: #19
Hi everyone,
I've been lurking around on and off for a while, and saw this so I figured I'd give it a shot.

I got really into and threw in a quick 3D view Rolleyes
Let me know what you think.

http://homepage.mac.com/edgare/.cv/edgar...t-link.sit
Quote this message in a reply
Founder
Posts: 1,138
Joined: 2002.04
Post: #20
Actually, no I don't need such an app, since ArcGIS (a very very very expensive GIS) app I use does it. But I think some other geologist, people may bind it useful.

Two entries thus far?

WoW!

Playing with "GlobeDistance" now!

Great! 3D!

Why not make the two axis movement controls the same way? One is like a knob and one is a slider. Just thinking outloud. Wink Kilometers too! OSC will be happy! And low-and-behold, vectors for the locations, Bravo!

Now to look at "Arculator".
Looks like a Cocoa app. Grin Ah, I see you formatted the values correctly (ie degrees symbols) Hours Flight as well?!? I'm impressed!

Between the two of these, I see some great programmers! Come, on who else is going to impress me?!?!? If you guys end up puttinf all your neat code together, you might have a really handy utility that can get 5 stars on even VersionTracker.com

Carlos A. Camacho,
Founder
iDevGames
Quote this message in a reply
Member
Posts: 156
Joined: 2002.10
Post: #21
GlobeDistance won't run on my machine - error log:

**********

Date/Time: 2004-01-30 13:51:15 +0000
OS Version: 10.2.8 (Build 6R73)
Host: Iain-Bethunes-G4.local.

Command: GlobeDistance
PID: 1903

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c

Thread 0 Crashed:
#0 0x909b3ccc in gluQuadricDrawStyle
#1 0x00008b14 in -[MyOpenGLView drawRect:]
#2 0x930809ec in -[NSView _drawRect:clip:]
#3 0x93096a34 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
#4 0x93096bbc in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
#5 0x93096bbc in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
#6 0x930c8180 in -[NSFrameView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForV​iew:topView:]
#7 0x930b2c14 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForV​iew:topView:]
#8 0x930963f4 in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
#9 0x930a5778 in -[NSView displayIfNeeded]
#10 0x930b5608 in -[NSWindow displayIfNeeded]
#11 0x930dc8b8 in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:]
#12 0x930ad7b4 in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
#13 0x931b32bc in loadNib
#14 0x930ea9b4 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:]
#15 0x93149a5c in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:]
#16 0x9314981c in +[NSBundle(NSNibLoading) loadNibNamed:owner:]
#17 0x9315fbfc in NSApplicationMain
#18 0x0000823c in _start (crt.c:267)
#19 0x000080b0 in start
Quote this message in a reply
Moderator
Posts: 592
Joined: 2002.12
Post: #22
Quote:Actually, no I don't need such an app, since ArcGIS (a very very very expensive GIS) app I use does it.

A very small world indeed as I too use that product.

I decided not to enter this contest for two reasons:

1. GIS stuff is what I do for a living so Mac is meant for playing and not work.
2. Someone decided to drive their car into the back of mine this morning so I'm not really in the mood for coding Sad
Quote this message in a reply
Member
Posts: 201
Joined: 2002.06
Post: #23
Carlos, next time you are going to start a short contest like this one, could you give it a couple days advance first? You don't have to say what objectives are in advance, just say when you will be posting them or something. That way everybody gets a heads up on when to be checking for the rules and objectives of the contest.
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #24
Camacho Wrote:Between the two of these, I see some great programmers! Come, on who else is going to impress me?!?!? If you guys end up puttinf all your neat code together, you might have a really handy utility that can get 5 stars on even VersionTracker.com

Well, after I saw GlobalDistance and the 3D stuff, and since I had some free time on my hands, AND because I needed to get my head clean, I fixed Arculator and added a nice OpenGL display. Arculator v2:

http://web.axelero.hu/g5d6/arculator2.zip

Don't push it or I will have to write a postmortem Wacko
Quote this message in a reply
Oather
Unregistered
 
Post: #25
Thanks for the feedback Camacho, I have to agree the GUI is pretty cumbersome. What I really need is one of those old Quickdraw3D views/controllers.

IBethune I'm guessing the crash is cause by 10.2. Unfortutaly I don't have the 10.2 sdk installed right now. I'm not doing error checking so it's quite possible it's something else.
You may be able to recomplie it with ProjectBuilder but it's not really worth the effort.

To bad I'm busy today or I'd try and fix things up and add some polish.

Love the degrees minutes seconds textboxes DoG, haven't got a chance to check out the 2nd version yet though.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  GamePress Greatest Game Challenge VPrime 1 1,155 Oct 28, 2013 06:15 PM
Last Post: VPrime
  Moscrif game development challenge Turok 0 2,552 Oct 1, 2012 08:38 AM
Last Post: Turok
  Zero-hour game jam JustinFic 7 6,951 Nov 9, 2011 12:04 AM
Last Post: funkboy
  Google AI Challenge OneSadCookie 13 11,833 Dec 2, 2010 06:42 PM
Last Post: PowerMacX
  Announcing the Macworld 2010 GameSalad Challenge! GameSalad 3 6,326 Dec 30, 2009 06:23 PM
Last Post: pinguoren