Development for Cocoa is underway!
Development for Cocoa is underway!
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!
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
-
- Enthusiast
- Posts: 536
- Joined: Mon Feb 16, 2009 10:42 am
- Location: sweden
- Contact:
Re: Development for Cocoa is underway!
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
etc etc...
The winner of all systems is Purebasic, here is the proof:
ScrollAreaGadget
Carbon: 487 lines
Cocoa: 163 lines
Purebasic: 1 line
etc etc...
Re: Development for Cocoa is underway!
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
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
Re: Development for Cocoa is underway!
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!
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!
Re: Development for Cocoa is underway!
Unless you prefer Microsoft's way:Foz wrote:By the time we get to 4.80 we'll be bug free
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.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)
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
Re: Development for Cocoa is underway!
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.Fred wrote:We don’t have that many user on OS X, as it still have nowaday a small user base compared to Windows ...
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!
Re: Development for Cocoa is underway!
Especially now that many people are switching to OSX due to the nonsense decisions microsoft has made (including the useless metro thing...)
-
- Enthusiast
- Posts: 349
- Joined: Thu Jul 02, 2009 5:42 am
Re: Development for Cocoa is underway!
This is awesome news. Thanks to the PB team.
Re: Development for Cocoa is underway!
What do you mean by "iOS-like scrollbars" ?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!
Re: Development for Cocoa is underway!
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.
Re: Development for Cocoa is underway!
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).USCode wrote:With Cocoa and 64bit support coming, this could change...Fred wrote:We don’t have that many user on OS X, as it still have nowadays a small user base compared to Windows ...
The reason for that is Windows 8
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
I am to provide the public with beneficial shocks.
Alfred Hitshock
Re: Development for Cocoa is underway!
This seems like as good a place as any to comment on this bit I saw in the blog post:
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.
Code: Select all
[[[NSTabView alloc] initWithFrame:NSMakeRect(x, y, Width, Height)] autorelease]
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.
Re: Development for Cocoa is underway!
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:
means the Instance named myCar of needs to be washed. myCar, look how it's done and do it!
named parameters to messages...
So you have here:
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.
In Objective C square brackets encloses messages send to objects or classes.
Par example:
Code: Select all
[myCar wash]
Code: Select all
[myCar wash:withSoapNr(2)]
So you have here:
Code: Select all
[[[NSTabView alloc] initWithFrame:NSMakeRect(x, y, Width, Height)] autorelease]
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.
Re: Development for Cocoa is underway!
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.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.
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.
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.gekkonier wrote:My next thing to learn will be functional programming, but not sure wich language to choose.
Re: Development for Cocoa is underway!
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.
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.