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
Shardik
Addict
Addict
Posts: 2060
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:
Last edited by Shardik on Wed Sep 03, 2025 5:45 pm, edited 1 time in total.
User avatar
luis
Addict
Addict
Posts: 3895
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 ?"
User avatar
Shardik
Addict
Addict
Posts: 2060
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: 3895
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 ?"
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
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