Welcome, Guest. Please login or register.

Author Topic: [Alpha] Another mac client  (Read 240 times)

starik69 and 1 Guest are viewing this topic.

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
[Alpha] Another mac client
« on: December 16, 2013, 01:05:54 AM »
Hi,

I've developed another mac alternative client. Instead of opening the site in the browser, you instead get a dedicated nxt client window. See the screenshot below:



Now, there is a big issue though. On first execution of the app it seems to eat up a ton of memory and lags - making it unusable.. This seems to be related to the web client (javascript). If there are any other mac developers out there, I would very much appreciate it if you could take a look at the code and see if this can be fixed.

So, after first execution you will have to quit the app, and java too. Do this via activity monitor (force quit if necessary). On subsequent executions it should work fine. But again, this is an alpha - any developers, please take a look to help fix this bug.

The code does not check if you have the correct java version installed (yet).


December 17th: New build which includes the 0.3.20 release:

https://copy.com/eZeM1dlEur3z

And I'm happy to say that this seems to solve the memory issue that plagued earlier versions, at least on my system. (It appears to have been related to the 0.3.19 experimental build).

PS: Right click the application, then choose "open" if you get a security warning, this is normal - because the application is not yet signed.

PS2: Make sure any other java server is not running any more before starting this app.
« Last Edit: Today at 11:09:32 AM by wesley »
Donations appreciated: 3209075099254042753 -- thanks!

Online NxtChoice

  • Nxter
  • **
  • Posts: 50
    • View Profile
Re: [Alpha] Another mac client
« Reply #1 on: December 16, 2013, 04:31:03 AM »
Great work.

I will have a try tonight.
NXT: 17959837214177417816

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #2 on: December 16, 2013, 10:06:40 AM »
New version available:

https://copy.com/mlfGIxvdZGNO

This will check if the correct java version is installed, if not, it will download the installer.

It should now also work on 10.7+

But anyway, I think this may prove futile. It seems the web view starts lagging after a while. Perhaps due to the ton of ajax requests that happen? WebViews in Cocoa perhaps do not have the same performance as a standard Safari window.

If another dev would take a look at it, that would be much appreciated.
« Last Edit: December 16, 2013, 07:54:56 PM by wesley »
Donations appreciated: 3209075099254042753 -- thanks!

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #3 on: December 16, 2013, 12:23:01 PM »
For any other mac devs out there, perhaps the solution is using the Chromium Embedded Framework?

Though it has not yet been released with full support for xcode 5, there is a sample project created by a third party that seems to work:

https://github.com/acristoffers/CEF3SimpleSample

However, I don't know how to integrate this in my client app. Any help is appreciated..
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #4 on: December 16, 2013, 12:25:24 PM »
On 10.9 it suggests to download java 6 not 7, is this right?
NXT 648774468

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #5 on: December 16, 2013, 12:28:20 PM »
On 10.9 it suggests to download java 6 not 7, is this right?

Hmm, no, it should say that you do not have java, and then give the option to download it. If you click OK it will download a file named jdk-7u45-macosx-x64.dmg - which is java 7. Is that what happened?
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #6 on: December 16, 2013, 12:55:04 PM »
No, it popped window with suggestion to download java 6. I didn't proceed and manually downloaded java 7.
NXT 648774468

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #7 on: December 16, 2013, 01:04:19 PM »
Well, that's weird. The message that is supposed to show is:

"The correct java version was not found on your system. Initiate download? Restart this application after java is downloaded and installed."
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #8 on: December 16, 2013, 01:46:21 PM »
Very strange. It suggests to install java 6 by software update.



After installation nxt still doesn't work and show window to download java.



If i click "yes" it opens error in safari.
NXT 648774468

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #9 on: December 16, 2013, 01:55:25 PM »
Thanks for the screenshots, that should make it easier. I didn't know cookies needed to be set to download the installer file. Also will check why the mac java 6 installer appears, what OS X version do you have?
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #10 on: December 16, 2013, 02:11:41 PM »
OS X 10.9 (13A603)
NXT 648774468

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #11 on: December 16, 2013, 04:34:17 PM »
New version with built-in downloader for java sdk 7:

https://copy.com/mlfGIxvdZGNO

But again, not yet ready for prime time.

First execution it will eat up all your memory, quit it after a couple of seconds if it lags. Then in activity monitor force quit java.

Second execution is better but at times it will lag.

Still looking for another developer to help fix that critical bug.
« Last Edit: December 16, 2013, 07:55:08 PM by wesley »
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #12 on: December 16, 2013, 05:32:39 PM »
Still software update
NXT 648774468

Online wesley

  • Fresh Nxter
  • *
  • Posts: 27
    • View Profile
Re: [Alpha] Another mac client
« Reply #13 on: December 16, 2013, 05:42:39 PM »
Yes, I haven't found a solution yet to not have software update turn up.. If anyone has suggestions, please share.

Does the download button work though? (Simply close the software update dialog for now)
Donations appreciated: 3209075099254042753 -- thanks!

Online starik69

  • Fresh Nxter
  • *
  • Posts: 32
    • View Profile
Re: [Alpha] Another mac client
« Reply #14 on: December 16, 2013, 06:07:10 PM »
Yes, download button works fine.
NXT 648774468