Antoine Mercadal
bcb1630f20
FIXED: Closes all streams after a OS.popen()
...
Previously, when popen was called, the 3 streams (stdin, stderr and stdourt) where never closed. This was the reason of the having an impossible number of open files.
This patch ensure all streams are closed after using them. This means that the ulimit trick is no more necessary
2015-04-23 16:46:01 -07: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
Aparajita Fishman
502edbd152
nib2cib enhancements
...
- Added support for User Defined Runtime Attributes in IB.
- Added support for userland NS classes in IB.
- Added support for file-based nib2cib configuration.
- Converted nib2cib to Objective-J from straight Javascript.
- Updated man page for new features.
- Test app.
2012-04-12 12:09:24 -04:00
Aparajita Fishman
1c2a304ee5
Assignment of function is a statement and should be semicolon terminated. Some miscellaneous linting as well.
2012-01-05 17:51:37 -10:00
Antoine Mercadal
6c34bec51e
do not return 0 if any conversion fail (return 2 instead)
2011-06-19 19:32:42 +02:00
Aparajita Fishman
025e761929
If $CAPP_BUILD is not set or entity is not found in it, look in the narwhal cappuccino package.
2011-04-13 18:02:08 -04:00
Aparajita Fishman
a7161e3ca7
Changed comparison in initial check to <=, a cib with an equal mtime could not have been converted from an IB file, it would have a later mtime.
2011-04-06 04:40:05 -04:00
Aparajita Fishman
73746e00b0
Fixes and enhancements...
...
- If an IB file is deleted, the corresponding cib is no longer deleted.
- In watch mode, the first time through no conversion is done if an IB file has a corresponding cib file with a later mtime.
- In watch mode, an add does not convert if there is a corresponding cib file with a later mtime.
- When catching exceptions, deal correctly with both CPException and strings.
2011-04-06 04:34:56 -04:00
Aparajita Fishman
af6d38fd16
Fixes and enhancements
...
- When a xib/nib is deleted, the corresponding cib is deleted.
- Fixed the calculation of the output path when given a relative path.
- Works with .nib files now.
- Works with -R option now. NSCustomResource was assuming an image path would always be relative to cwd().
- The Resources directory is always inferred from the input path, so the -R option is usually unnecessary.
- Added --default-theme option.
- Multiple extra themes can be specified with the --theme option.
- Verbose mode displays the inferred application and resources paths, and the source theme used when doing font substitutions.
- Added a man page.
- Themes are read using StaticResource instead of parsing the file myself.
- Error message tweaks.
2011-04-05 16:57:16 -04:00
Klaas Pieter Annema
40bfb55b64
don't resolve nib2cib output path
2011-04-04 14:23:36 +02:00
Aparajita Fishman
e07ff706ab
Fixed stupid bug in figuring out what directory to watch
2011-03-31 20:10:18 -04:00
Aparajita Fishman
7ec31a7c53
If no directory is passed to --watch, default to Resources
2011-03-31 19:51:22 -04:00
Aparajita Fishman
16bacae7e3
More cool stuff...
...
- The holy grail! I took Klaas' great autonib2cib and rolled it into nib2cib.
- Removed check for stream in CPLogColorize, it isn't necessary and reduces its general-purpose usage.
2011-03-29 16:06:19 -04:00
Aparajita Fishman
d00a8b9d18
Use a parser action to show version and quit
2011-03-29 12:54:54 -04:00
Aparajita Fishman
8fed2c7a9a
Factored code into functions, fixed input and output path computation
2011-03-28 18:45:03 -04:00
Aparajita Fishman
e18b21ec1b
Fixed output path check
2011-03-13 10:15:26 -04:00
Aparajita Fishman
42c71172f2
Better path checking and error messages, fixed issue #1154
2011-03-13 10:08:17 -04:00
Aparajita Fishman
6b72651a05
Error message tweaks
2011-03-11 12:00:58 -05:00
Aparajita Fishman
3a79e82ce8
Removed check for fontinfo, it will be part of the cappuccino package
2011-03-11 09:04:11 -05:00
Aparajita Fishman
11f92353c8
Removed layoutMode references
2011-03-11 08:37:23 -05:00
Aparajita Fishman
10bfeaf8f7
Added comment for non-obvious code, fixed option name in nib2cib
2011-03-10 12:49:50 -05:00
Aparajita Fishman
120c06fcb2
Further CPFont work, don't print nib2cib version all the time.
2011-03-09 14:33:11 -05:00
Aparajita Fishman
d303e6e96c
Initial commit before testing.
2011-03-08 17:40:41 -05:00
Francisco Ryan Tolmasky I
ff60125183
Some capp_linting.
...
Reviewed by me.
2010-12-01 11:04:17 -08:00
Paul Baumgart
45ebe2c905
Fix deprecation warnings
2010-10-06 23:04:46 -07:00
Tom Robinson
3518813145
Switch nib2cib to use more robust args parsing.
2010-03-06 21:21:08 -08:00
Francisco Ryan Tolmasky I
38c4dd408c
Fix for CPBundle loading all code. Fixes external frameworks with nib2cib.
...
Reviewed by me.
2010-02-18 13:55:30 -08:00
Ross Boucher
27e99344bd
Make nib2cib quieter by default. Prints only fatal error messages.
...
Pass the -v flag to print warnings, and -vv or --verbose to print all messages.
Closes #475 .
2010-02-16 16:59:44 -08:00
Francisco Ryan Tolmasky I
39049f82fc
Fix for nib2cib incorrectly requiring at least 2 arguments.
...
Reviewed by me.
2009-12-04 15:02:59 -08:00
tlrobinson
b0dd3cd818
Fix nib2cib.
2009-12-01 20:02:55 -08:00
Tom Robinson
4581fe4f22
Cleanup command line tool args (change objj to include command at args[0])
2009-11-30 21:45:01 -08:00
Francisco Ryan Tolmasky I
16deb3700d
Fixed incompatibilities in nib2cib with CommonJS and JavaScriptCore.
...
Reviewed by me.
2009-10-15 19:03:59 -07:00
Francisco Ryan Tolmasky I
2dac122c30
Fix for loading platform dependent code.
...
Reviewed by me.
2009-09-28 04:27:03 -07:00
Francisco Ryan Tolmasky I
d0599aef8f
More java call removal from nib2cib.
...
Reviewed by me.
2009-07-11 20:31:12 -07:00
Francisco Ryan Tolmasky I
afba1909bb
Improved TableView nib support as well as including several nib2cib improvements.
...
Reviewed by me.
2009-07-11 18:12:20 -07:00
Francisco Ryan Tolmasky I
5cb9f5f7c2
Fix for Unicode chars being mangled when building.
...
Closes #146 .
Reviewed by me.
2009-05-27 01:34:56 -07:00
Francisco Tolmasky
ea1783504d
Added HUD to Aristo.
...
Reviewed by me.
2009-05-18 22:57:39 -07:00
Francisco Tolmasky
8391f593d9
Various unicode fixes.
...
Reviewed by me.
2009-05-18 21:24:46 -07:00
Ross Boucher
675b9df44c
fix usage printout for nib2cib
2009-05-14 11:02:55 -07:00
tlrobinson
6c0a281ac2
Remove importClass for java.io.File
2009-05-10 03:56:13 -07:00
tlrobinson
6e11a66cb0
Updated all Rakefiles and tools to work with Narwhal
2009-05-10 03:35:31 -07:00
Francisco Ryan Tolmasky I
3bd28b28ab
Fixed nib2cib importing of external custom frameworks and added bundle types.
...
Reviewed by me.
2009-03-22 08:12:54 -07:00
Francisco Tolmasky
ad93ad55cc
Fixed some build bugs and moved capp to new build system.
...
Reviewed by me.
2009-03-17 19:19:08 -07:00
Francisco Ryan Tolmasky I
9ec781fb41
Improved support for resources in nib2cib.
...
Reviewed by me.
2009-02-01 14:51:12 -08:00
Francisco Ryan Tolmasky I
7c117f22a7
Added support for external frameworks in nib2cib.
...
[#167 state:resolved].
Reviewed by me.
2008-12-15 00:47:42 -08:00
Francisco Ryan Tolmasky I
0b48863a51
Fix for nib2cib always using MainMenu.cib as output filename.
...
Reviewed by me.
2008-12-12 20:21:46 -08:00
tlrobinson
39ff2b46ab
Another fix for non-ASCII characters in NIBs
2008-12-09 01:54:29 -08:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Tom Robinson
f39dfef168
CPSplitView pane splitter (thin divider), archiving, and nib2cib support
...
[#52 state:resolved responsible:tlrobinson]
2008-09-19 01:12:00 -07:00