Recent

Author Topic: Cocoa - How to get started with helping?  (Read 24051 times)

Alextp

  • Hero Member
  • *****
  • Posts: 889
    • UVviewsoft
Re: Cocoa - How to get started with helping?
« Reply #30 on: December 29, 2017, 02:38:48 pm »
btw. I see strange bug on cocoa- on CudaText. or ATTabs demo. it is strange dark rectangle around tabs, and around x icons of tabs.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: Cocoa - How to get started with helping?
« Reply #31 on: December 29, 2017, 02:46:13 pm »
I think you already reported this one and what you're seeing is a regression.

28692: Cocoa: toolbar, icons repaint with black pixels. This one?

If that's the one, then the regression was caused due to changes made for this issue
32749: Cocoa: Unable to draw on top of JPEG images.
« Last Edit: December 29, 2017, 02:52:05 pm by skalogryz »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Alextp

  • Hero Member
  • *****
  • Posts: 889
    • UVviewsoft
Re: Cocoa - How to get started with helping?
« Reply #32 on: December 29, 2017, 04:19:46 pm »
not this one, it is another issue only with painting rectangles on canvas (FillRect seems).

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: Cocoa - How to get started with helping?
« Reply #33 on: December 29, 2017, 04:30:55 pm »
a stand-alone example would really help
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Alextp

  • Hero Member
  • *****
  • Posts: 889
    • UVviewsoft
Re: Cocoa - How to get started with helping?
« Reply #34 on: December 29, 2017, 05:06:21 pm »
It exists. download ATTabs repo [online package manager], demo_lazarus shows this bug.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: Cocoa - How to get started with helping?
« Reply #35 on: December 29, 2017, 06:09:06 pm »
in that case other bugs takes priority.

an example demonstrating the issue without AT package (LCL only) can boost the priority to the top.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #36 on: December 29, 2017, 07:46:57 pm »
Were the screenshot (Windows/Linux) useful?
I can do more testing if you'd like.
Yes. The reason I asked for them is because of "Fonts" sections.
Cocoa Fonts sizing technique were recently changed, and I was wondering if results look alike between operating system.

Could you please do the following test.
Assign some (non-default) font to each of those labels. i.e. "Arial" (whatever is available in macOS).
Take a screen shot of how it looks in Carbon IDE.
Then launch Cocoa IDE and take another screen shot.
Then launch TextEdit and try to replicate those text fonts and most importantly selected size there.

What should happen is the font in the application should look like the font in TextEdit.

After that you could the similar test in Windows (using i.e. WordPad)
and Linux (not sure what text editor would be useful there. OpenOffice?)


I totally overlooked this message - apologies for that.
Did you mean compile the IDE in Carbon and look what the labels look like (with another font) and then compare to the IDE compiled withy Cocoa?
Or did you mean create an application with TLabel and some font; compile it Carbon, then Cocoa? (I'd assume that would do the same?)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: Cocoa - How to get started with helping?
« Reply #37 on: December 29, 2017, 07:56:31 pm »
Just the application itself (no need to recompile IDE)

and then application rendered fonts needs to be compared to the same fonts and size in TextEdit application. (which is a default macOs text processing application)
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #38 on: December 29, 2017, 08:42:40 pm »
Just the application itself (no need to recompile IDE)

and then application rendered fonts needs to be compared to the same fonts and size in TextEdit application. (which is a default macOs text processing application)


Attached:


- Project file


(screenshots in next posts)

Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #39 on: December 29, 2017, 08:44:53 pm »
Test on the Mac. I've updated Lazarus to the latest SVN version.


The IDE is compiled with Carbon for both screenshots.


1) Compiled the application with Carbon
2) Compiled the application with Cocoa


You can clearly see some size issues in Cocoa.
Note that all TLabels are left aligned, and each "line" has the same "top" value.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2283
    • havefunsoft.com
Re: Cocoa - How to get started with helping?
« Reply #40 on: December 29, 2017, 08:45:55 pm »
TextEdit. How does it look in TextEdit?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #41 on: December 29, 2017, 08:45:55 pm »
Same project compiled under Windows (Windows 10, Lazarus 1.8.0) and Linux (Mint, Lazarus 1.8.0.1).
Both look good.

Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #42 on: December 29, 2017, 09:01:57 pm »
TextEdit. How does it look in TextEdit?


The height some how resets in Carbon but not in Cocoa.
Looks like the fonts are OK in a TEdit under Cocoa.


I carefully assume you didn't need Linux/Windows with this. If you do need them; let me know  :)

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Cocoa - How to get started with helping?
« Reply #43 on: December 29, 2017, 09:02:02 pm »
Test on the Mac. I've updated Lazarus to the latest SVN version.


The IDE is compiled with Carbon for both screenshots.


1) Compiled the application with Carbon
2) Compiled the application with Cocoa


You can clearly see some size issues in Cocoa.
Note that all TLabels are left aligned, and each "line" has the same "top" value.

Why are there two screenshots in each .png? What am I missing?


Hansaplast

  • Hero Member
  • *****
  • Posts: 539
  • Tweaking4All.com
    • Tweaking4All
Re: Cocoa - How to get started with helping?
« Reply #44 on: December 29, 2017, 09:03:03 pm »
Forgot to include the project files.  :)