Development for Cocoa is underway!

Mac OSX specific forum
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Development for Cocoa is underway!

Post by TI-994A »

Great news from the PureBasic blog: they have started work on extending the PureBasic OSX compiler to support the Cocoa framework, and so far, they "are on track and making great progress."

Good luck guys!
Texas Instruments TI-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! Please visit my YouTube Channel :D
jesperbrannmark
Enthusiast
Enthusiast
Posts: 536
Joined: Mon Feb 16, 2009 10:42 am
Location: sweden
Contact:

Re: Development for Cocoa is underway!

Post by jesperbrannmark »

Wonderful story on the progress. Like a lot of things in life, when it seems like a simple task it can get pretty comprehensive.

The winner of all systems is Purebasic, here is the proof:
ScrollAreaGadget
Carbon: 487 lines
Cocoa: 163 lines
Purebasic: 1 line :wink:
etc etc...
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: Development for Cocoa is underway!

Post by Foz »

Hmmm, I would imagine that 4.70 for Windows & Linux will just be mostly bug fixes, as a whole new architecture (osx64!) will be added.

Then 4.71 would be *more* bug fixes (though focusing on the new Mac bugs)

By the time we get to 4.80 we'll be bug free :mrgreen:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Development for Cocoa is underway!

Post by Polo »

Brilliant! May I suggest, if Fred's reading, to add support for the iOS-like scrollbars for ScrollbarGadget?
That's now a standard on Lion and an app without it looks weird.

Can't wait to see the result of Freak and Fred's work! :)
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Development for Cocoa is underway!

Post by TI-994A »

Foz wrote:By the time we get to 4.80 we'll be bug free
Unless you prefer Microsoft's way:
Bill Gates wrote:There are no significant bugs in our released software that any significant number of users want fixed... The reason we come up with new versions is not to fix bugs. It's absolutely not. It's the stupidest reason to buy a new version I ever heard... And so, in no sense, is stability a reason to move to a new version. It's never a reason. (FOCUS Magazine Interview)
For a free-upgrade product, with a tested twelve-year record of bug-fixes and feature-updates, Fantaisie is doing great work and offering a great service to all of us.

That's commitment!
Texas Instruments TI-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! Please visit my YouTube Channel :D
User avatar
USCode
Addict
Addict
Posts: 912
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle, USA

Re: Development for Cocoa is underway!

Post by USCode »

Fred wrote:We don’t have that many user on OS X, as it still have nowaday a small user base compared to Windows ...
With Cocoa and 64bit support coming, this could change -- Perhaps what held PB back from growing a larger OS X user base was the lack of 64bit support, bugs, dated appearance of apps, etc.
This makes it tough to create competitive apps and thus discouraged OS X developers from using PB.

But now with the new PB OS X changes that are coming, this could all change in a hurry! :mrgreen:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Development for Cocoa is underway!

Post by Polo »

Especially now that many people are switching to OSX due to the nonsense decisions microsoft has made (including the useless metro thing...)
spacebuddy
Enthusiast
Enthusiast
Posts: 349
Joined: Thu Jul 02, 2009 5:42 am

Re: Development for Cocoa is underway!

Post by spacebuddy »

This is awesome news. Thanks to the PB team.
Fred
Administrator
Administrator
Posts: 16688
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Development for Cocoa is underway!

Post by Fred »

Polo wrote:Brilliant! May I suggest, if Fred's reading, to add support for the iOS-like scrollbars for ScrollbarGadget?
That's now a standard on Lion and an app without it looks weird.

Can't wait to see the result of Freak and Fred's work! :)
What do you mean by "iOS-like scrollbars" ?
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Development for Cocoa is underway!

Post by Polo »

Rubber band scrollbars (only on lion or higher), the ones that are always hidden unless you perform a mouse scroll (provided the option is activated). There is documentation on the apple dev website I think.
User avatar
fsw
Addict
Addict
Posts: 1572
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Development for Cocoa is underway!

Post by fsw »

USCode wrote:
Fred wrote:We don’t have that many user on OS X, as it still have nowadays a small user base compared to Windows ...
With Cocoa and 64bit support coming, this could change...
I suppose if Apple doesn't do stupid stuff the OSX user base will grow and PureBasic will benefit from it either way (with 32 or 64 bit PB).

The reason for that is Windows 8 :shock:

Windows users will stay with WinXP/Win7 as long as they can and when the PC hardware dies they will buy a Mac.

That's what I did :mrgreen:

I am to provide the public with beneficial shocks.
Alfred Hitshock
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Development for Cocoa is underway!

Post by void »

This seems like as good a place as any to comment on this bit I saw in the blog post:

Code: Select all

    [[[NSTabView alloc] initWithFrame:NSMakeRect(x, y, Width, Height)] autorelease]
Seeing things like that is very horribly distressing, and pretty much exactly why I tend to avoid most programming languages.


That comment aside, I am very much looking forward to the Cocoa build of PureBasic. I have many Mac users, and being able to support them properly will be very welcome.
gekkonier
User
User
Posts: 78
Joined: Mon Apr 23, 2007 9:42 am

Re: Development for Cocoa is underway!

Post by gekkonier »

This line is pretty much selfexplanatory. And with intellisense you write this line in about 3 secs ;)

In Objective C square brackets encloses messages send to objects or classes.
Par example:

Code: Select all

[myCar wash]
means the Instance named myCar of needs to be washed. myCar, look how it's done and do it!

Code: Select all

[myCar wash:withSoapNr(2)]
named parameters to messages...

So you have here:

Code: Select all

[[[NSTabView alloc] initWithFrame:NSMakeRect(x, y, Width, Height)] autorelease]
just read ist. The names of parameters, messages and keywords are chosen in a matter that everyone should get it.
You will get as a result an object of NSTabView (memory will be allocated), wich uses a designated initialization (initWithFrame stuff), wich will handlet by gc. Its just a longer and detailed form of "[NSTabView new]", but with more detailed features.

But you can also choose dot syntax like
myCar.wash if you want. But i prefer to use brackets, because you could easily misinterpret dot syntax as structures.

It's always good to learn more than one language. I started seriously with Ruby and Purebasic. Later on, with D, Scala, Python, C and Objective-C you will come back to purebasic and do coding a lot different than before. Because you know more patterns. My next thing to learn will be functional programming, but not sure wich language to choose.
void
Enthusiast
Enthusiast
Posts: 116
Joined: Sat Aug 27, 2011 9:50 pm
Location: Washington, USA

Re: Development for Cocoa is underway!

Post by void »

gekkonier wrote:It's always good to learn more than one language. I started seriously with Ruby and Purebasic. Later on, with D, Scala, Python, C and Objective-C you will come back to purebasic and do coding a lot different than before. Because you know more patterns.
I agree with your first sentence in principle but in practice I suffer from severe cognitive barriers regarding syntax-heavy languages. I cannot work well in them, and I cannot work in object oriented languages. Syntax-heavy object oriented languages are simply impossible for me.

That said, I have worked extensively with quite a number of languages: C, Pascal (Turbo era), Logo, several variants of Forth, Erlang, some 8-bit Assembly languages, and obviously PureBasic (previously Applesoft BASIC and other variants). I have trouble with even some of these. Not I do not understand them, but I have trouble shaping my thoughts when it comes to using them for anything significant. Again, cognitive barriers.
gekkonier wrote:My next thing to learn will be functional programming, but not sure wich language to choose.
For functional programming I would strongly recommend erlang if you have any expectation of non-trivial cross-platform work. Haskell has a lot of interesting features at the language level but their windows port (for instance) has a lot of problems that can render it unusable for many tasks.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Development for Cocoa is underway!

Post by wilbert »

I had to learn Objective C when I wanted to code for iOS.
At first it looked very complicated with those square brackets but it only took a little while to get used to it.
Once I got used to it it made a lot of sense. :)
Post Reply