• Welcome to the Speedsolving.com, home of the web's largest puzzle community!
    You are currently viewing our forum as a guest which gives you limited access to join discussions and access our other features.

    Registration is fast, simple and absolutely free so please, join our community of 40,000+ people from around the world today!

    If you are already a member, simply login to hide this message and begin participating in the community!

Mac OS X Cube Timer

byu

Member
Joined
Dec 18, 2008
Messages
2,021
Location
California
WCA
2009YUBR01
YouTube
Visit Channel
This idea of mine has multiple parts. I've always wanted to use CCT. But my computer, doesn't have an Intel core processor, meaning I can't run the latest version of Java, therefore meaning I cannot run CCT.

So, I've been looking for an extremely flexible alternative, and stumbled across JNetCube. Works good, but the interface is too fixed for me. I can't do averages of more than 12 without turning it into a rolling average, etc.

So, I'm going to TRY to create an eloquent, flexible timer program using the Apple Xcode Developer Tools, written in Objective-C designed specifically for Mac OS X Leopard. I have the following books that I will be basing a lot of the code off of:

Programming in Objective-C (Stefan G. Kochan)
Cocoa Programming for Mac OS X Third Edition (Aaron Hillegass)
Learning Cocoa with Objective-C (James Duncan Davidson)

I have a few more, but those are the only ones specifically about Objective-C and Cocoa. If any of you Mac users are interested, I can send you a beta version that I'm working on right now.

Also, if some PC users could give a detailed list of features in CCT that are your favorites, that would be great, because I could try to implement them.

EDIT: Also, I'm looking for a neat name for a program. If you have a good one, let me know.
 

masterofthebass

Premium Member
Joined
May 13, 2007
Messages
3,923
Location
Denver, CO
WCA
2007COHE01
YouTube
Visit Channel
eww objective-C. if you really want to be cool, do it in pyobjc :p I've been thinking of doing some sort of Cocoa app since I learned the basics of it, but I haven't had any good ideas. Good luck with a program like this, I'll be somewhat of an epic undertaking.
 

byu

Member
Joined
Dec 18, 2008
Messages
2,021
Location
California
WCA
2009YUBR01
YouTube
Visit Channel
I'm having some very strange difficulty just getting the program to work properly. Any Cocoa users out there? I might have to go to a programming forum.

Basically, I have a XIB file with the entire interface in it, with connections to File's Owner, which is an instance of the class Controller. Controller has two instance variables, timerField and description. I have pointers in the XIB connection Controller to the interface items.

Back in the Controller class, I have implemented awakeFromNib, but it NEVER gets called. Any ideas?
 

JBCM627

Member
Joined
Apr 27, 2008
Messages
799
Location
Ohio, USA
WCA
2006MERT01
Why a mac-only timer? Why not just make one thats easy to port to any OS... so use a framework like Qt or something?

Wanda the Fish said:
Q: What's the difference between a Mac and an Etch-A-Sketch?
A: You don't have to shake the Mac to clear the screen.
 

tim

Member
Joined
Nov 22, 2006
Messages
1,692
Location
Karlsruhe, Germany
WCA
2007HABE01
YouTube
Visit Channel
I'm having some very strange difficulty just getting the program to work properly. Any Cocoa users out there? I might have to go to a programming forum.

Use MacRuby. Enough said :).
btw. This might help: http://www.cocoabuilder.com/archive/message/cocoa/2005/10/6/147656.

Why not just alter JNetCube to suit your needs - it's quite well written and easily modified.

What? Have you ever looked at the source code? Four different classes with lots of duplicated code for 2x2x2 - 5x5x5 scramblers is just ugly. Adding a scrambler requires you to write a lot of code in several places.

Code:
private boolean isParallel(int thisArray, int thatArray){
  if (thisArray == thatArray){
    return true;
  } else {
    return false;
  }
} // end isParallel

I don't know what's worse: the unnecessary comment at the end, the missing whitspace after the if statement, the misleading variable names or the way he made a one-liner into a five-liner.
 
Last edited:

joey

Member
Joined
Apr 8, 2007
Messages
4,413
WCA
2007GOUL01
YouTube
Visit Channel
Eww, I won't take a look at the rest of the code :p

(In my previous post I mentioned I used CCT on a non-intel mac, didn't know they only released an intel Java6 now, but sure you could find the PPC one somewhere)
 

byu

Member
Joined
Dec 18, 2008
Messages
2,021
Location
California
WCA
2009YUBR01
YouTube
Visit Channel
My very simplistic beta (timing only, no averages yet) entitled CubeX (I couldn't think of any title, and that's what came to mind first) should be out later today, unless I run into a strange compilation error (which is very possible).
 

JTW2007

BattsMan
Joined
Nov 29, 2008
Messages
1,591
Location
WCA
2008WARL01
I'd love a beta for my mac! When it comes to my favorite features on CCT: Editable tags for solves, comment space, ability to use a stackmat timer, scramble display (so you can check the scramble), and lots of flexibility when it comes to color and system layout.

The cons of CCT: Not enough puzzles (no pyraminx, skewb, relays, or editable session tags), hard to make it work on my mac, not enough space in the comment box.

Anyway, this sounds like a great idea!
 

masterofthebass

Premium Member
Joined
May 13, 2007
Messages
3,923
Location
Denver, CO
WCA
2007COHE01
YouTube
Visit Channel
The cons of CCT: Not enough puzzles (no pyraminx, skewb, relays, or editable session tags), hard to make it work on my mac, not enough space in the comment box.

I have pyraminx, skewb, clock, and other scramble plugins available if you want. The scrambling part of CCT is actually one of the best, because it allows for expansion, unlike other programs. Also, the pyraminx plugin is available on the CCT website.
 

JTW2007

BattsMan
Joined
Nov 29, 2008
Messages
1,591
Location
WCA
2008WARL01
I have pyraminx, skewb, clock, and other scramble plugins available if you want. The scrambling part of CCT is actually one of the best, because it allows for expansion, unlike other programs. Also, the pyraminx plugin is available on the CCT website.

That'd be awesome. I'll PM you so as not to hijack the thread.
 

masterofthebass

Premium Member
Joined
May 13, 2007
Messages
3,923
Location
Denver, CO
WCA
2007COHE01
YouTube
Visit Channel
I'll just attach it here for everyone using mac. It seems that my .class files compiled on OS X don't transfer over to Windows users :( In this zip file there are 3 files that you place in the ScramblePlugins folder of your CCT folder.
 

Attachments

  • ScramblePlugins.zip
    7.3 KB · Views: 18

brunson

Member
Joined
Feb 17, 2008
Messages
1,119
Location
Westminster, CO
WCA
2008BRUN01
Why a mac-only timer? Why not just make one thats easy to port to any OS... so use a framework like Qt or something?

Wanda the Fish said:
Q: What's the difference between a Mac and an Etch-A-Sketch?
A: You don't have to shake the Mac to clear the screen.
QT is really cool to program in. Interobject communication is been abstracted and simplified an a really awesome way.
 
Top