Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 07 18:48
    YutaLin starred cappuccino/cappuccino
  • Jun 05 21:23
    daboe01 commented #2984
  • Jun 02 07:25
    cappbot commented #2984
  • Jun 02 07:25
    cappbot labeled #2984
  • Jun 02 07:25
    cappbot labeled #2984
  • Jun 02 07:25
    cappbot unlabeled #2984
  • Jun 02 07:25
    cappbot labeled #2984
  • Jun 02 06:51
    daboe01 commented #2984
  • Jun 02 06:46
    cappbot commented #2984
  • Jun 02 06:43
    daboe01 commented #2983
  • Jun 02 06:15
    cappbot labeled #2984
  • Jun 02 06:15
    cappbot milestoned #2984
  • Jun 02 06:04
    Abhie87 edited #2984
  • Jun 02 06:04
    Abhie87 opened #2984
  • Jun 02 05:53
    Abhie87 commented #2983
  • May 31 07:09
    cappbot commented #2983
  • May 31 07:09
    cappbot labeled #2983
  • May 31 06:47
    daboe01 edited #2983
  • May 31 06:47
    cappbot milestoned #2983
David Richardson
@enquora
@daboe01 One Objective-C, one Objective-J. Note the Objective-C one doesn’t require explicitly making a layer - just setting the wantsLayer property
enquora
@enquora:matrix.org
[m]
I’m starting to wonder if this isn’t a low-level problem like scaleUnitSquareToSize:
daboe01
@daboe01
@enquora:matrix.org looks like you need to draw the stuff to be rotated inside - (void)drawInContext:(CGContextRef)ctx;
enquora
@enquora:matrix.org
[m]
@daboe01 Has this changed in Cocoa over the last decade, do you know? I’m wondering about the discrepancy between Objective-C and Objective-J behaviours.
enquora
@enquora:matrix.org
[m]
Trying to imagine how to eventually implement CPView rotate:
David Richardson
@enquora
The clock (visual) component of CPDatePicker does, indeed, use drawLayer:inContext: to rotate its hands. The discrepancies in behaviour (between browser and native) is, I’m guessing, a matter of incomplete rather than incompatible implementation - but comments from others with more drawing context experience welcome, especially on the issue (#2982) which has been opened.
daboe01
@daboe01
@enquora i do not know. i never used rotation in CPView but only in CALayer. https://developer.apple.com/documentation/quartzcore/calayer/1410757-drawincontext?language=objc
David Richardson
@enquora
Who is the admin for the Freenode IRC channel? Given the recent problems there and lack of use, should it be deleted? Most large projects which use IRC seem to have already moved to libera.chat
Martin Carlberg
@mrcarlberg
@enquora I don't know who is the admin for the IRC channel. Must be someone from before my time.
David Richardson
@enquora
@mrcarlberg It’s low priority - no-one uses it. Nevertheless, it’s a bad look to have obviously unmaintained loose ends.
Abhie C
@Abhie87
For CPTextView, i found that when we copy paste the text from the textview , it does not correctly copy it and in my case it just paste "-". To verify i tried the examples given on the link https://cappuccino-testbook.5apps.com/#ThemeKitchenSink. The same issue is reproduce for CPTextViewCibTest (Try to copy paste the given text 'Je suis un CPTextView' ), but for example CPTextView it seems to be working correctly. Is this a known issue ?
daboe01
@daboe01
@Abhie87 copy paste in CPTextView only works with the main menu enabled. (you can hide it though in your startup-code).
Abhie C
@Abhie87
For CPButton, when i try to set the control size to mini or small the font size remain same as Regular. this seems to be happening after i upgraded to Cappuccino 1.0 version. Is it a known issue?
Michael Bach
@michaelbach
For better or worse, I have just open-sourced my largest Cappuccino project: https://github.com/michaelbach/FrACT10
daboe01
@daboe01
@michaelbach thank you!
daboe01
@daboe01
@Abhie87 looks like this should work. https://cappuccino-testbook.5apps.com/#CPControlSize
what browser do you use?
Abhie C
@Abhie87
Yup i tried the same example on my system .. I am using Chrome
daboe01
@daboe01
Bildschirmfoto 2021-06-01 um 17.53.07.png
@Abhie87 this is what i am seeing with chrome
aksuska
@aksuska
@daboe01 That is not the default display style for 1.0.0. Are you using a newer framework, or a custom style? On my unmodified 1.0.0 buttons display with Arial Bold (except radio buttons, but including popup buttons)
David Richardson
@enquora
@michaelbach It’s always useful to see how others structure non-trivial applications, even if the app’s purpose isn’t immediately relevant. Thanks.
daboe01
@daboe01

@daboe01 That is not the default display style for 1.0.0. Are you using a newer framework, or a custom style? On my unmodified 1.0.0 buttons display with Arial Bold (except radio buttons, but including popup buttons)

i took the foto directly from https://cappuccino-testbook.5apps.com/#CPControlSize

daboe01
@daboe01
@Abhie87 you are right. i am seeing the issue with the latest master. please open a ticket for this on github.
Bildschirmfoto 2021-06-01 um 22.50.10.png
Abhie C
@Abhie87
@daboe - Added the ticket on github.
daboe01
@daboe01
@Abhie87 thank you. do you have a bisect to nail down which commit broke this? are you sure it is broken already in 1.0?
Abhie C
@Abhie87
@daboe01 - Yes for my application i recently upgrade to 1.0.0 where i found this issue. Same i was able to replicate in the example for cappuccino 1.0.0 version.
aksuska
@aksuska
I can confirm the behavior on 1.0.0, at least between Regular and small. I don't use mini sizes in my app...
David Richardson
@enquora
A download link for the docset of Apple's archived documentation of Cocoa concepts: https://mjtsai.com/blog/2021/06/07/old-apple-conceptual-documentation/
David Richardson
@enquora
Similarly, and just as useful, OpenStep conceptual documentation: http://lisp.hopto.org/Documentation/OPENSTEP/NextDev/Reference/
Martin Carlberg
@mrcarlberg
Nice!
daboe01
@daboe01
@enquora awesome, even EOF2 is included :-)
Martin Carlberg
@mrcarlberg
I have done a test of converting the tool ojtest to NodeJS. You can try it by typing the following after you have made sure you have NodeJS installed:
mkdir ojtest
cd ojtest
npm install objj-ojtest
npx ojtest node_modules/objj-ojtest/Test/OJAssertTest.j
This is a test to get something running. Everything is not yet working but it is a start :smile:
It uses the objj-runtime Node module and is completely independent of Narwhal or any of the old stuff.
Martin Carlberg
@mrcarlberg
Should work on any platform but I have only tested it on a Mac
To run all the test cases you can use to following command:
find node_modules/objj-ojtest/Test -type f -name "*Test.j" | xargs npx ojtest
Some of them will fail but the most important are working :smiley:
Martin Carlberg
@mrcarlberg
enquora
@enquora:matrix.org
[m]
@daboe01 Have you watched last week’s presentation on TextKit2? I just scanned the outline, am presuming the outward API is backward compatible and won’t affect anything we do in IB.
daboe01
@daboe01
@mrcarlberg good to see that we are moving forward with our toolchain.
Martin Carlberg
@mrcarlberg
@daboe01 Yes, next is nib2cib 😃
daboe01
@daboe01
@enquora:matrix.org thank you for point this to my attention. textedit is slow as molasses on big sur. next to impossible to use with large files. this is most likely caused by their switch to textkit2
David Richardson
@enquora
@daboe01 Using Monterey almost exclusively here. Remarkably, it's stable enough for daily use in my experience.
I wonder if TextKit2 is written in Swift - that would be a significant undertaking? I'm guessing not, given how stable Monterey is.
daboe01
@daboe01
@enquora i do not know. i think rewriting the text system in swift is quite easy for them, given that they share the low level code for heavy lifting and have a working reference implementation at hand.
Michael Bach
@michaelbach
@mrcarlberg : Motivated by your OJTest-node, I'm adding doxygen to my project. However, while the class description appears, none of the methods appear in the generated doc. Do I need to run the mysterious make_headersor else? Thanking you in advance.
Michael Bach
@michaelbach
@mrcarlberg : forget it, my error: ´EXTRACT_LOCAL_METHODS´ was ´NO´…
Udo Schneider
@udoschneider
Maybe off-topic: But what are current competitors to Cappuccino on the context of writing Desktop-style apps (in contrast to adding dynamic bling to HTML/CSS)? The only thing I'm aware off is ExtJS. The rest of the JS crowd seems to have moved "ahead" (IMHO moved "down" but limiting themselves to HTML/CSS and proclaiming that's the only way to do it).