Skip to content
This repository was archived by the owner on Mar 10, 2019. It is now read-only.

Fix objj2 warnings #45

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

udoschneider
Copy link

Fixes all the warnings caused by the new Obj-J 2 compiler. Updates the Jakefile to the current capp template.

As Objective-J now enforces correct import paths I added imports for needed
AppKit/FoundationKit imports and also fixed in-framework imports. E.g:

@import <LPKit/LPViewAnimation.j>

became

@import "LPViewAnimation.j"
Added LPMultiLineTextField.j import to LPKit.j. Importing the framework with

@import <LPKit/LPKit.>

would also import LPMultiLineTextField as well.
Updated Jakefile to use new template. Kept original license an and author settings.
Added import for <AppKit/CPApplication.j> to provide global variable "CPApp".
- (void)mouseUp:(CPEvent)anEvent declared a local var "calenderView" which hid the ivar of the same name. Replaced the local var with "theCalenderView". Although it might also work to not define an additonal variable but simply refer to the ivar.
The initial assignment of _firstDay with missing a var statement.
The initial assignment of _cached with missing a var statement.
- (void)setDisplayLabels:(BOOL)shouldDisplayLabels referenced a non-existent (local) var aFrame. I assume aFrame references the size of the drawView.

BREAKING CHANGE:
Although this code would have thrown an error anyway this should be marked as breaking as I do not fully understand the original intention here. My "fix" might be incorrect from a intention point of view.
The initial assignment of itemFrames with missing a var statement.
The initial assignment of numberOfSubviews with missing a var statement.
The initial assignment of frameIsDirty with missing a var statement.
The initial assignment of key with missing a var statement.
The initial assignment of isHighlighted with missing a var statement.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant