PB BLOG : What’s behind the PB GUI objects by freak

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

PB BLOG : What’s behind the PB GUI objects by freak

Post by luis »

http://www.purebasic.fr/blog/?p=336

I believe the OSX column contains the older Carbon objects PB used before the migration to Cocoa.

I find that table very useful, could be possible to add a new column with the updated Cocoa objects (NSView, NSControl, etc) PB uses now ? Or maybe make an entirely new updated post ? I just wouldn't remove the Carbon info, even if old.

Thanks.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: PB BLOG : What’s behind the PB GUI objects by freak

Post by Shardik »

I have taken the html source of the table in the blog post and added the information for OS X with the Cocoa framework:

Image

If Fred or freak are interested in posting the modified table in their blog (and perhaps correcting possible wrong entries) they should send me a PM... :wink:
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PB BLOG : What’s behind the PB GUI objects by freak

Post by luis »

Thank you :wink:
Can I ask you how did you determine all the objects types ?
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: PB BLOG : What’s behind the PB GUI objects by freak

Post by Shardik »

luis wrote:Can I ask you how did you determine all the objects types ?
For the Cocoa framework on MacOS it's very easy. You can simply "ask" each object for its class name with

Code: Select all

Debug "Class = " + PeekS(CocoaMessage(0, CocoaMessage(0, Object, "className"), "UTF8String"), -1, #PB_UTF8)
And cocoa framework master wilbert has already demonstrated how to find out the chain of all inherited objects of a gadget:
http://www.purebasic.fr/english/viewtop ... 71#p391571
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PB BLOG : What’s behind the PB GUI objects by freak

Post by luis »

Perfect, thank you.
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB BLOG : What’s behind the PB GUI objects by freak

Post by RSBasic »

@freak & @Fred
Can you update the list?
https://www.purebasic.fr/blog/?p=336

Thank you :)
Image
Image
Post Reply