Search found 26 matches

by syntonica
Mon Feb 16, 2026 7:26 pm
Forum: Coding Questions
Topic: XML -> Scintilla
Replies: 2
Views: 144

Re: XML -> Scintilla

There's a difference between premature optimization and just plain bad ideas. I'm trying to rule out the latter here. I can't do anything much about performance until I see the finished result and how it compares to the Java version.
by syntonica
Mon Feb 16, 2026 4:09 am
Forum: Coding Questions
Topic: XML -> Scintilla
Replies: 2
Views: 144

XML -> Scintilla

I'm accessing an XML database exported from a Java Properties file. The nodes are coded as key/value pairs thusly:

<entry key="aKey">aValue</entry>

I have extracted the pairs into a map, but it seems the values are stored as UTF-16 rather than the UTF-8 from the file. When I try to stuff a value ...
by syntonica
Sat Feb 14, 2026 1:51 am
Forum: Mac OSX
Topic: ListIconGadget Row Height
Replies: 8
Views: 176

Re: ListIconGadget Row Height

Wow, ton of usefil info. Thanks everyone.

I'm beginning to remember this from when I wrote some C code to call out to Cocoa, which I don't recommend to anyone. It seems to me that the float special treatment goes back to changes made when Apple transitioned from PPC->Intel in regards to method ...
by syntonica
Fri Feb 13, 2026 1:54 pm
Forum: Mac OSX
Topic: ListIconGadget Row Height
Replies: 8
Views: 176

Re: ListIconGadget Row Height

Thanks, Shardik. That worked as well. This is getting embarrassing. I'm not used to having to ask so many questions. Normally, if I can't figure it out, there's something on StackOverflow that can point me in the right direction.

Also, Is there areference for CocoaMessage beyond what's in the manual?
by syntonica
Fri Feb 13, 2026 1:38 pm
Forum: Mac OSX
Topic: ListIconGadget Row Height
Replies: 8
Views: 176

Re: ListIconGadget Row Height


I'm not at my Mac right now....

Should work like this

rowHeigth.d = 32.0
CocoaMessage(0,GadgetID(gadget?), "setRowHeight:@", @rowHeigth)


Internally, PB draws the cells using Owner Draw. Unfortunately, this means that some older examples for NSTableView no longer work.

That worked a treat ...
by syntonica
Fri Feb 13, 2026 6:58 am
Forum: Mac OSX
Topic: ListIconGadget Row Height
Replies: 8
Views: 176

ListIconGadget Row Height

Is there a way to change this? I don't see anything in the PB docs. I'm using a 12x12 png icon, which is fine, with a 12-point font, but the margins/insets are too big.

Does this gadget map to an NSTableView? Using "setRowSizeStyle:" or "setIntercellSpacing:" doesn't seem to affect it. Once again ...
by syntonica
Wed Feb 11, 2026 2:51 am
Forum: Mac OSX
Topic: Preferences > Issues : Changes not persistent
Replies: 2
Views: 88

Re: Preferences > Issues : Changes not persistent


Preferences : Issues
Select TODO -> Change Color -> (X) Change issue background -> Button Update -> Button Apply or Ok


Wow! Thanks! I totally missed that Update button which I must have clicked before in a state of confusion acclimating to a new IDE.

So it's not a bug, it's just weirdly ...
by syntonica
Tue Feb 10, 2026 11:40 pm
Forum: Mac OSX
Topic: Preferences > Issues : Changes not persistent
Replies: 2
Views: 88

Preferences > Issues : Changes not persistent

I can no longer change any settings regarding Issues. This worked fine in the Demo version.

I tossed my old prefs file in ~/.puebasic and redid them. No change.

Using: PureBasic 6.30 - C Backend (MacOS X - x64)
Monterey 12.7.6

Please help me stamp out the ugly orange TODOs in my code ...
by syntonica
Tue Feb 10, 2026 8:25 pm
Forum: Coding Questions
Topic: Old Schoo Coding Style
Replies: 2
Views: 260

Old Schoo Coding Style

I often see expressions like thiese in example code:


Event = Event()
EventWindow = EventWindow()
...


This was an old trick for getting compilers to save values in registers rather than re-evaluating the function each time.

Is this still suggested with the PB compiler? Or, is this just old ...
by syntonica
Tue Feb 10, 2026 6:15 pm
Forum: Off Topic
Topic: PureBasic: the Quiet Survivor
Replies: 40
Views: 2937

Re: PureBasic: the Quiet Survivor


OOP is a lot more than just that. In most of my projects, I need class inheritance, method overriding, private and protected values. These are all things that are difficult to solve with procedural programming.

Oh,I agree, for the most part. I love my simple top-down inheritance, Interfaces and ...
by syntonica
Tue Feb 10, 2026 6:01 pm
Forum: Off Topic
Topic: Why is there no InspectrGadget?
Replies: 4
Views: 197

Re: Why is there no InspectrGadget?

Thatshould be GadgetHelper.Niece("Penny")! Just another AI fail...
by syntonica
Tue Feb 10, 2026 9:52 am
Forum: Off Topic
Topic: Why is there no InspectrGadget?
Replies: 4
Views: 197

Why is there no InspectrGadget?

DrClaw is running rampant in the crime-infested city!
by syntonica
Mon Feb 09, 2026 9:18 pm
Forum: Off Topic
Topic: Music
Replies: 45
Views: 3933

Re: Music


PS: I'm a "percussionist", whatever that means :wink:


You like to hit things? :D
I never had the coordination to be a drummer. Same reason you need to get off the road if I'm driving a stick-shift.

My computer's hard drive died a few weeks ago, First time in 30+ years that's ever happened ...
by syntonica
Mon Feb 09, 2026 8:49 pm
Forum: Off Topic
Topic: PureBasic: the Quiet Survivor
Replies: 40
Views: 2937

Re: PureBasic: the Quiet Survivor


Since Purebasic will never be an object oriented language and because it costs money, it will never be a best option for modern projects, and even less for OpenSource projects. Also the syntax is very clunky and there could be more syntactic sugar in some areas.
But still: I like the way Purebasic ...
by syntonica
Mon Feb 09, 2026 7:23 pm
Forum: Mac OSX
Topic: [Newbie!] Pointers and Multi-Windows
Replies: 16
Views: 408

Re: [Newbie!] Pointers and Multi-Windows

I have made my purchase! Yes, dear Bank, people do do business in Europe. Even in France.

I do have a complaint/suggestion. I suffer from some visual impairment regarding bright light. The order page was blinding! If you could fix the contrast with a little more Early Mondriaan and less Late ...