profile
viewpoint
Martin Carlberg mrcarlberg Göteborg, Sweden

mrcarlberg/objj-runtime 11

Runtime for Objective-J language

mrcarlberg/LightObject 10

Core Data like framework for Cappuccino

mrcarlberg/objj-transpiler 8

Objective-J and JavaScript Compiler with preprocessor

mrcarlberg/cappuccino 3

Web Application Framework in JavaScript and Objective-J

mrcarlberg/objj-parser 3

A tiny, fast JavaScript and Objective-J parser with built in preprocessor. Written in JavaScript.

mrcarlberg/NSTextViewDelegateAndNotifications 2

This application will track delegate methods and notification messages from a NSTextView

mrcarlberg/language 1

A fast PEG parser written in JavaScript with first class errors

mrcarlberg/cappuccino-base 0

Cappuccino release builds.

mrcarlberg/cappuccino.org 0

Cappuccino website.

pull request commentcappuccino/cappuccino

Fix version check for XcodeCapp compatibility with Big Sur

This was intentional, but the cutoff point was somewhat arbitrary - 10.12 represents a convenient dividing line between deprecated and mostly modern Cocoa (for both XcodeCapp and APIs).

The project should ideally have a global statement about support cutoff.

enquora

comment created time in 16 hours

pull request commentcappuccino/cappuccino

Fix version check for XcodeCapp compatibility with Big Sur

@mrcarlberg @enquora With this commit, the min version for Xcode changed from 10.7 to 10.12. Is it intentional ? because it's not in the pr description.

enquora

comment created time in a day

issue closedcappuccino/cappuccino

nib2cib fails with OSX 11.0.1 and Xcode 12.2

I've created a standard new project which produces an error of Converting xib file to plist... Could not compile file: ...... /Resources/MainMenu.xib when either using XCodeCapp or nib2cib. When first opening MainMenu.xib in xcode I get a warning that the file is an old format and the options presented are either to open and upgrade the file or cancel. nib2cib fails both before opening the xib in xcode and after 'upgrading'. Screenshot 2020-11-23 at 09 46 12

The full terminal record from capp gen to nib2cib here: Terminal.txt

There is an original MainMenu.cib file created when the project is created.

closed time in a day

djbewick

issue commentcappuccino/cappuccino

nib2cib fails with OSX 11.0.1 and Xcode 12.2

Now running cappuccino 1.0.0 (2020-03-26 dd781f) and the problem has gone. My apologies.

djbewick

comment created time in a day

issue commentcappuccino/cappuccino

nib2cib fails with OSX 11.0.1 and Xcode 12.2

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

djbewick

comment created time in a day

issue openedcappuccino/cappuccino

nib2cib fails with OSX 11.0.1 and Xcode 12.2

I've created a standard new project which produces an error of Converting xib file to plist... Could not compile file: ...... /Resources/MainMenu.xib when either using XCodeCapp or nib2cib. When first opening MainMenu.xib in xcode I get a warning that the file is an old format and the options presented are either to open and upgrade the file or cancel. nib2cib fails both before opening the xib in xcode and after 'upgrading'. Screenshot 2020-11-23 at 09 46 12

The full terminal record from capp gen to nib2cib here: Terminal.txt

There is an original MainMenu.cib file created when the project is created.

created time in a day

pull request commentcappuccino/cappuccino

Aristo3: various _CPImageAndTextView bugs

@mrcarlberg @cacaodev The centering stuff also impacts CPImageView so I suggest to deal with it in another PR. So this one is done.

didierkorthoudt

comment created time in 2 days

pull request commentcappuccino/cappuccino

FIXED: Before this PR, CPTabView was badly positioned

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in 3 days

PR opened cappuccino/cappuccino

FIXED: Before this PR, CPTabView was badly positioned

A missing call to [super awakeFromCib] was missing in nib2cib NSTabView.j (it was commented for tests in development branch).

This PR simply reintroduce this call.

+3 -0

0 comment

1 changed file

pr created time in 3 days

issue commentcappuccino/cappuccino

Vertical alignment of 'Loading' animation for index.html is broken in Safari, Edge

Fixed with merging of PR2953

enquora

comment created time in 4 days

issue closedcappuccino/cappuccino

Vertical alignment of 'Loading' animation for index.html is broken in Safari, Edge

The vertical alignment of the 'Loading' animation is no longer correct in recent Safari versions and Edge. It is at the very top of the page.

The current implementation depends on using the 'table' display mode for divs but is no longer reliably producing the desired effect.

The modern way to do this is using flexbox, but rules out usage in Internet Explorer. Are we still making any effort to support IE?

If so, a more complete layout using table appears necessary.

closed time in 4 days

enquora

pull request commentcappuccino/cappuccino

Aristo3: various _CPImageAndTextView bugs

@mrcarlberg Well, I'll try to implement @cacaodev suggestion. Please hold on this one for now.

didierkorthoudt

comment created time in 4 days

issue commentcappuccino/cappuccino

"LIKE" Predicate Operator Incorrectly Implemented

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

aksuska

comment created time in 6 days

issue openedcappuccino/cappuccino

"LIKE" Predicate Operator Incorrectly Implemented

According to lines 320-322 of CPComparisonPredicate, when the "like" operator is used, the framework uses RegExp.test() for comparison. However, because the expression is unanchored, the behavior is as if the "CONTAINS" operator was used but with wildcard support, and this is not how Cocoa works. The easiest solution is to anchor the expression, i.e. prepend a "^" and append a "$". Note also that the flags ate incorrect--"g" should never be used for tis kind of operator. The corrected code could look like:

 var commut = (_options & CPCaseInsensitivePredicateOption) ? "i":"",
       reg = new RegExp("^"+rhs.escapeForRegExp()+"$",commut);
 return reg.test(lhs);

This is my workaround and works properly.

created time in 6 days

pull request commentcappuccino/cappuccino

Fix version check for XcodeCapp compatibility with Big Sur

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

enquora

comment created time in 10 days

PR opened cappuccino/cappuccino

Fix version check for XcodeCapp compatibility with Big Sur

Fixed - compatibility check for building XcodeCapp depends on outmoded macOS version numbering scheme.

+3 -3

0 comment

1 changed file

pr created time in 10 days

pull request commentcappuccino/cappuccino

Update "Loading…" animation using modern layout - Fixes Issue #2942

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

enquora

comment created time in 13 days

PR opened cappuccino/cappuccino

Update "Loading…" animation using modern layout - Fixes Issue #2942

Correct vertical alignment in all modern browsers using CSS Flexbox layout. IE no longer a target.

+66 -36

0 comment

6 changed files

pr created time in 13 days

pull request commentcappuccino/cappuccino

fixed: selection and backspace are recently broken in CPTokenField

@mrcarlberg would you prefer a runloop approach (not tested though)?

[[CPRunLoop currentRunLoop] performSelector:@selector(makeFirstResponder:) target:[self window] argument: nil order:0 modes:[CPDefaultRunLoopMode]]
daboe01

comment created time in 16 days

pull request commentcappuccino/cappuccino

FIXED : This PR fixes a running condition that could occur in CPRadio

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in 17 days

PR opened cappuccino/cappuccino

FIXED : This PR fixes a running condition that could occur in CPRadio

This PR fixes a running condition where if the value is set before the radio button is associated in a radio group, the radio group will miss the currently selected button.

+9 -1

0 comment

1 changed file

pr created time in 17 days

pull request commentcappuccino/cappuccino

Aristo3: CPSearchField

@cacaodev Well, the layout-function of CPSearchField represents the animation that will be called when the field gets or loses the focus. As it depends on how the theme implements the layout of the search field, it must be a theme parameter. This also ensures retro-compatibility without using if statements in the code.

I don't think this is something that could be useful for all types of views as it is specific to a particular behavior of CPSearchField (trying to mimic modern Cocoa).

But this "function as a theme parameter" technic is useful. For example, CPTableView uses it for column reordering animations…

Did I answered your questions ?

didierkorthoudt

comment created time in 19 days

pull request commentcappuccino/cappuccino

Aristo3 : New _CPImageAndTextView & theme parameter (needs #2914)

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in 19 days

PR opened cappuccino/cappuccino

Aristo3 : New _CPImageAndTextView & theme parameter

This PR adds a new parameter to _CPImageAndTextView : imageVerticalOffset, that permits to adapt (shift vertically) the position of the image.

It also adds the corresponding ``ìmage-vertical-offsettoCPButton``` theme descriptor.

+1059 -4

0 comment

12 changed files

pr created time in 19 days

pull request commentcappuccino/cappuccino

FIXED: various _CPImageAndTextView bugs

@mrcarlberg Please wait on this one…

didierkorthoudt

comment created time in 23 days

pull request commentcappuccino/cappuccino

FIXED: This PR fixes 3 compilation warnings

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in 23 days

PR opened cappuccino/cappuccino

FIXED: This PR fixes 3 compilation warnings

This PR simply adds the needed missing declarations in order to get rid of 3 compilation warnings.

+5 -0

0 comment

3 changed files

pr created time in 23 days

pull request commentcappuccino/cappuccino

FIXED: Before this PR, placing a CPTableView in a CPBox would break nib2cib

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in 24 days

PR opened cappuccino/cappuccino

FIXED: Before this PR, placing a CPTableView in a CPBox would break nib2cib

This PR simply adds a missing initialization method call to NS_initWithCoder within NSTableView.j.

It is unclear why this didn't occur before…

+2 -0

0 comment

1 changed file

pr created time in 24 days

pull request commentcappuccino/cappuccino

FIXED: Before this PR, CPStepper wouldn't display correctly

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

didierkorthoudt

comment created time in a month

more