Aparajita Fishman
6472ac7701
Formatting, import fixes
2013-02-12 22:29:31 -05:00
Aparajita Fishman
aeb42ea4f8
CPByteCountFormatter, a complete implementation of NSByteCountFormatter, with test app
2013-02-11 14:08:41 -05:00
Aparajita Fishman
2221d40f47
Log if there is a formatter attached to a text field
2013-02-10 20:05:14 -05:00
Antoine Mercadal
563fb657a4
Change some pixel adjustements to reflect what IB is doing in nib2cib
2013-02-06 17:01:27 -08:00
Alexander Ljungberg
0fa56cb273
Fixed: in recent CPBox versions, corner radius set in IB was ignored.
...
Without this fix, setting a corner radius of 0 on a CPBoxCustom resulted in there being a corner radius anyhow.
This fix makes sure to preserve the corner radius, border width and margins for non-primary style boxes.
2013-02-04 16:26:26 +00:00
Alexander Ljungberg
da47161e1a
Fixed: nib2cib error on case sensitive filesystems.
...
Before this fix, nib2cib compilation would fail with `require error: couldn't find "OS"`.
2013-01-30 11:52:28 +00:00
Aparajita Fishman
6e424478f1
Warn users if the ulimit is too low and tell them what to do.
...
Setting ulimit in narwhal.conf isn't necessary, not all targets need a larger limit. In addition, if the hard limit is 512, it can't be set above that once the terminal session starts.
2013-01-30 12:46:27 +08:00
Antoine Mercadal
8f4fdeaa8f
Improve CPTextField positioniing in nib2cib
2013-01-24 20:34:06 -08:00
Antoine Mercadal
cc45fb58a8
Compensate box frame in nib2cib
2013-01-24 19:46:08 -08:00
Aparajita Fishman
93fb849296
Import fixes
2013-01-24 19:18:39 +08:00
Antoine Mercadal
98cfe2922a
Disable artificial inset for labels in nib2cib
2013-01-23 23:39:44 -08:00
Antoine Mercadal
fa708272bc
fix nib2cib to correctly place normal, small and mini labels
2013-01-23 16:38:16 -08:00
Aparajita Fishman
af47857a47
Fixed missing/circular imports in nib2cib
2013-01-23 23:10:10 +08:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
Antoine Mercadal
e25cee0855
Add missing @class
2013-01-22 13:10:55 -08:00
Aparajita Fishman
cc0503c8a4
Fixed missing import, deprecated CP functions, misnamed ivar
2013-01-21 12:07:03 +07:00
Alexander Ljungberg
06694061d2
Fix nib2cib error introduced by c3d8f4f.
...
This fixes `- [NSWindowTemplate setFullBridge:] unrecognized selector sent to instance` errors when running nib2cib.
2013-01-20 16:05:06 +00:00
Aparajita Fishman
7c831fa19d
capp_lint flags deprecated CPPoint/Rect/Size types/functions
...
- Changed to corresponding CG types/functions in all files
- Fixed some demo app bugs
2013-01-19 16:51:56 +07:00
Antoine Mercadal
c3d8f4f80b
Fix bug in NSWindowTemplate.j where using a non existing ivar
2013-01-18 14:46:49 -08:00
Antoine Mercadal
6b172cd3a6
remove useless usage of self. in NSWindowTemplate.j
2013-01-18 14:34:22 -08:00
Antoine Mercadal
86e0282011
Fix nib2cib warnings
2013-01-18 14:29:25 -08:00
Antoine Mercadal
1006890b6e
Add missing import in nib2cib.
2013-01-16 10:50:33 -08:00
Antoine Mercadal
e5de031423
Merge branch 'objj_compiler2' into objj2integration
...
Conflicts:
AppKit/CPWindow/CPWindow.j
2013-01-14 11:43:24 -08:00
Martin Carlberg
0d6a962344
Merge branch 'master' of https://github.com/cappuccino/cappuccino into objj_compiler2
2013-01-10 11:22:41 +01:00
Antoine Mercadal
53fa384608
make nib2cib work either with Aristo1 or Aristo2 for dynamic widget adjustment
2013-01-09 20:25:32 -08:00
Antoine Mercadal
1cbe1cfaeb
Merge branch 'master' into Aristo2
2013-01-09 11:59:01 -08:00
Antoine Mercadal
295eedc0b9
Add missing import in NSMenuItem.j
2013-01-09 11:58:42 -08:00
Antoine Mercadal
6d43387c55
Remove actually useless chunck of code in NSSearchField.j
2013-01-08 22:23:08 -08:00
Antoine Mercadal
ed4094016b
Update nib2cib NSSearchField.j to use correct field height
2013-01-08 22:21:51 -08:00
Antoine Mercadal
63a3a8a731
Use API to set themable attribute in nib2cib for CPBox
2013-01-04 18:45:53 -08:00
Antoine Mercadal
d87f86b2a4
Adjust CPSegmentedControl height to match new Aristo2 art
2013-01-04 12:20:36 -08:00
Antoine Mercadal
93e931e2b6
Fix Aristo2 Build process
2013-01-03 13:47:50 -08:00
Martin Carlberg
897adf27f0
Fixed import statements in nib2cib, bug in load system and some more fixes to test cases
2012-12-17 14:57:18 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +01:00
Martin Carlberg
7dd034e56c
nib2cib will now adjust to the correct themed height for subclasses of CPButton.
...
For examples CPPopUpButton can get another height then CPButton.
2012-11-29 13:25:53 +01:00
Alexander Ljungberg
8819fd5fd7
Improve nib2cib support for NSMatrix based radio groups.
...
Without this fix, a matrix with a target-action pair would crash when the cib was loaded due to the matrix having been replaced with a `CPView` (which cannot take a target-action pair).
Now if the matrix is for radio buttons, the action connection for the matrix is made to the `CPRadioGroup` instead and works as expected when radio selections are made.
2012-10-15 02:55:04 +01:00
Alexander Ljungberg
adb6404a0f
Support Cib/Interface Builder window positioning masks.
...
Without this feature windows could easily end up being placed outside of the screen/browser when loaded in Cappuccino due to e.g. the window position being 100 px from the bottom of a 1418 px tall screen but the browser only being 800 px.
This commit adds support for all "initial position" window masks in Interface Builder except "centre". Position can be specified in current screen space coordinates and then adjusted proportionally to the browser size, or adjusted while preserving a left or right margin and a top or bottom margin.
2012-10-15 00:20:22 +01:00
Aparajita Fishman
c37783c895
Fixed table column header styling
...
- Attributes set in IB are now obeyed.
- Added accessor methods to programmatically style _CPTableColumnHeaderView.
Since we don't have an NSCell and _CPImageAndTextView is supposed to be private, it's better to have the styling methods in _CPTableColumnHeaderView.
2012-10-11 12:34:55 -04:00
Aparajita Fishman
8ff2a32b47
Fix tag reading from IB
...
Both controls and cells can have tags in IB, but Cappuccino has no cells. If the control has a tag, that takes precedence. Tag reading was moved to NSControl from NSView, since NSView does not have a tag in Cocoa.
2012-09-28 16:20:55 -04:00
Alexander Ljungberg
d0fa16b96b
Fix NSPopUpButton in previous commit.
2012-08-31 23:19:24 +01:00
Alexander Ljungberg
3dacb4a5ef
Fix nib2cib alignment ofCPColorWell, CPComboBox, CPPopUpButton and CPSegmentedControl.
2012-08-31 22:31:40 +01:00
Alexander Ljungberg
4e6b9978ce
Adjust size in NSStepper to CPStepper.
2012-08-31 22:09:11 +01:00
Darrell Walisser
339937a316
-support for tags on NSCell, useful for radio groups
2012-08-04 13:58:31 -04:00
Darrell Walisser
97b3679101
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
AppKit/CPApplication.j
AppKit/CPWindow/_CPDocModalWindowView.j
2012-07-29 12:31:47 -04:00
Alexander Ljungberg
8aee458022
nib2cib support for button and radio button tags.
2012-07-19 01:05:09 +01:00
Aparajita Fishman
dec7ca1e19
Make NSClipView obey the Draw Background checkbox in IB
2012-07-14 10:32:21 -07:00
Aparajita Fishman
32dc0826cb
Text size and theming enhancements
...
- _CPImageAndTextView adds extra pixels to allow for fractional pixels in -sizeToFit.
- NSButton now allows buttons that are not fixed height, if the theme allows it.
- Documented the mapping between bezel style constants and their IB style names.
2012-07-13 21:00:02 -07:00
Aparajita Fishman
f7d67e4b87
Cleanup, documented hacks
2012-07-12 17:20:30 -07:00
Antoine Mercadal
20c7ed0034
fix CPTextField baseline alignement
2012-07-12 15:23:17 -07:00