It is currently Wed May 22, 2013 5:53 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Thu May 31, 2012 4:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 19, 2011 3:47 am
Posts: 384
void wrote:
Seeing things like that is very horribly distressing, and pretty much exactly why I tend to avoid most programming languages.
void wrote:
I agree with your first sentence in principle but in practice I suffer from severe cognitive barriers regarding syntax-heavy languages.
Well said. Regardless of how many different languages we know, we'll always have a well-versed favourite; and mine is PureBasic.

_________________
Texas Instruments 99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Thu Jul 05, 2012 7:26 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Jul 02, 2009 5:42 am
Posts: 170
Any news on the status of the Coco version of PB? :D


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Thu Jul 05, 2012 10:04 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Apr 27, 2003 8:12 am
Posts: 1620
Location: USA
spacebuddy wrote:
Any news on the status of the Coco version of PB? :D

Talked to Fred recently about another topic but he did give an update on its status and said, "...which is growing nicely btw". So it sounds like all is going well. ;)

_________________
AMD 64 4000+ / 1GB PC2700 / WIN XP Home SP3 / Nvidia GT220 x16 512MB / M-Audio Revolution 5.1
Macbook Air 11.6" - 2010 / OS X 10.8

http://www.posemotion.com
http://www.flashpulse.com


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Fri Jul 06, 2012 10:47 am 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
J. Baker wrote:
spacebuddy wrote:
Any news on the status of the Coco version of PB? :D

Talked to Fred recently about another topic but he did give an update on its status and said, "...which is growing nicely btw". So it sounds like all is going well. ;)

That's good news! :)


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Mon Jul 23, 2012 9:21 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
Any news on the current state of the Cocoa update? :)
I must say I'm itching to test it! :)


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 2:51 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8873
Location: France
Almost ready :). Here is a screenshot of the Cocoa'ified IDE:

http://www.purebasic.com/Cocoa.png


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:10 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9870
Location: Beyond the pale...
Wow, how many Basic compilers 'out there' support OSX Cocoa?

This is fantastic. I cannot even begin to imagine how much work this has been for you and Timo Fred. Scares the life out of me even thinking about it!

btw, will we be able to call the Cocoa API's directly like we can the Win API or will we need to create appropriate c wrappers around objective C calls etc? Just wondering. :)

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:15 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
Brilliant Fred, thanks!!

Did you think about adding a flag so we can use Lion's fullscreen windows? I love using it on Itunes, Chrome and such and I'd love my app to be able to do that as well! :)


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:18 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 8873
Location: France
That's really a lot of work, but it was fun to do (except some quirks here and here).

It's not possible to call directly objective C call as WinAPI, as it's not really calls, but messages. And the syntax doesn't fit regular API calls. The best for now is to do tiny C wrappers and use ImportC , that's how I did for the IDE and it works well. That said, wilbert wrote an objectiveC wrapper for PB to do some call: viewtopic.php?f=19&t=46243&hilit=objective+C

About the flag, it's not planned for now, but it should be doable via a C call


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:30 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
Fred wrote:
About the flag, it's not planned for now, but it should be doable via a C call

Oh ok, I'll do that then when a beta is released :)


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:32 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
As you probably have Xcode opened right now ( :twisted: ) would it be possible to have OSX standard status bar (like iTunes for instance, ie darker than the current PB Carbon ones)?

(sorry about all these questions, I'm so excited about PB Cocoa :) )


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 3:46 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 9870
Location: Beyond the pale...
Fred wrote:
It's not possible to call directly objective C call as WinAPI, as it's not really calls, but messages. And the syntax doesn't fit regular API calls. The best for now is to do tiny C wrappers and use ImportC , that's how I did for the IDE and it works well.


Right, best continue working through the ObjectiveC text books then. Must admit that I like ObjC, I like it a lot. A close 2nd to PB of course!

_________________
I may look like a mule, but I'm not a complete ass.

eScript
Arctic Reports
nxSoftware


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 4:41 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Apr 29, 2003 9:18 pm
Posts: 1115
Location: North by Northwest
srod wrote:
Wow, how many Basic compilers 'out there' support OSX Cocoa?

As far as I know there is RealBasic (uses a VM) and Objective-Basic (creates Objective-C files).

IMHO PureBasic is the best.
Really looking forward to the PureBasic beta. 8)

_________________

I'm impatient with stupidity. My people have learned to live without it.
Klaatu


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 4:47 pm 
Offline
Addict
Addict

Joined: Tue May 06, 2003 5:07 pm
Posts: 2257
Location: UK
There's Blitzmax as well, though I'm not sure it's updated anymore.


Top
 Profile  
 
 Post subject: Re: Development for Cocoa is underway!
PostPosted: Tue Jul 24, 2012 5:27 pm 
Offline
Addict
Addict

Joined: Sun Aug 08, 2004 5:21 am
Posts: 1085
Location: Netherlands
Fred wrote:
That said, wilbert wrote an objectiveC wrapper for PB to do some call

For simple message sending, things can also be done using imports.
I did this example viewtopic.php?f=19&t=48917 using imports only.

For those interested in how things work, this explains some low level functions
https://developer.apple.com/library/mac ... rence.html

@Fred, maybe you could consider updating this list when the Cocoa version is released
http://www.purebasic.fr/blog/?p=336 ( API Programming: What’s behind the PB GUI objects )
It would be great to know what kind of objects are used and how to get a reference to the object.
For the WebGadget for example, it would be very helpful to be able to get the WebView object to send messages to.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye